import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
/* Layout框架 */
import Layout from '@/layout'
export const constantRouterMap = [
  {
    name: 'login',
    path: '/login',
    component: () => import('@/views/login/index'),
    hidden: true
  },
  {
    path: '/404',
    component: () => import('@/views/404'),
    hidden: true
  },
  {
    path: '/shopping',
    component: Layout,
    meta: { title: 'shop', icon: 'shopping' },
    children: [
      {
        path: '/shopping',
        name: 'Shopping', // 商城
        component: () => import('@/views/mallHomepage/shopping'),
        meta: { title: 'shop' }
      },
      {
        path: '/shopCart',
        name: 'ShopCart', // 购物车
        component: () => import('@/views/mallHomepage/shopCart'),
        meta: { title: 'cart' }
      },
      {
        path: '/customOrderList',
        name: 'CustomOrderList', // 客户下单列表
        component: () => import('@/views/mallHomepage/customOrderList'),
        meta: { title: 'customOrder' }
      },
      {
        path: '/uploadProduct/:id',
        name: 'UploadProduct', // 上传产品
        component: () => import('@/views/mallHomepage/uploadProduct'),
        hidden: true,
        meta: { title: 'upProduct' }
      },
      {
        path: '/uploadPro',
        name: 'UploadPro', // 上传选品
        component: () => import('@/views/mallHomepage/uploadPro'),
        meta: { title: 'upProduct' }
      },
      {
        path: '/productListSC',
        name: 'ProductList', // 产品列表
        component: () => import('@/views/mallHomepage/productList'),
        meta: { title: 'productList' }
      },
      {
        path: '/productDetails/:id',
        name: 'ProductDetails', // 产品详情
        component: () => import('@/views/mallHomepage/productDetails'),
        hidden: true,
        meta: { title: 'productDetails' }
      },
      {
        path: '/flowChart/:id',
        name: 'FlowChart', // 全流程图
        component: () => import('@/components/flowChart'),
        meta: { title: 'flowChart' },
        hidden: true
      }
    ]
  }
]

const createRouter = () =>
  new Router({
    // mode: 'history', // require service support
    scrollBehavior: () => ({ y: 0 }),
    routes: constantRouterMap
  })

export const asyncRouterMap = [
  {
    path: '/',
    component: Layout,
    name: 'HomePageNew',
    redirect: '/taskNote',
    meta: { // 首页
      title: 'homePageNew',
      icon: 'home'
    },
    children: [
      {
        path: '/taskNote',
        name: 'TaskNote',
        component: () => import('@/views/homePageNew/taskNote'),
        meta: { title: 'taskNote' } // 主页---个人任务备忘录
      },
      {
        path: '/home',
        name: 'Home',
        component: () => import('@/views/homePageNew/home'),
        meta: { title: 'home' } // 个人主页
      },
      {
        path: '/manageHome',
        name: 'ManageHome',
        component: () => import('@/views/homePageNew/manageHome'),
        meta: { title: 'manageHome', noCache: false }, // 经营主页
        hidden: true,
        menu: 'manageHome'
      },
      {
        path: '/warehouseWMS',
        name: 'WarehouseWMS',
        component: () => import('@/views/homePageNew/warehouseWMS'),
        meta: { title: 'warehouseWMS', noCache: false }, // WMS仓库首页
        menu: 'warehouseWMS'
      },
      {
        path: '/supplyChain',
        name: 'SupplyChain',
        component: () => import('@/views/homePageNew/supplyChain'),
        meta: { title: 'supplyChain', noCache: false }, // 供应链中心
        hidden: true,
        menu: 'supplyChain'
      },
      {
        path: '/product',
        name: 'Product',
        component: () => import('@/views/homePageNew/product'),
        meta: { title: 'product', noCache: false }, // 生产中心
        hidden: true,
        menu: 'product'
      },
      {
        path: '/salesCenter',
        name: 'SalesCenter',
        component: () => import('@/views/homePageNew/salesCenter'),
        meta: { title: 'salesCenter', noCache: false }, // 销售中心
        hidden: true,
        menu: 'salesCenter'
      },
      {
        path: '/logistics',
        name: 'Logistics',
        component: () => import('@/views/homePageNew/logistics'),
        meta: { title: 'logistics', noCache: false }, // 物流中心
        hidden: true,
        menu: 'logistics'
      },
      {
        path: '/salesman',
        name: 'Salesman',
        component: () => import('@/views/homePageNew/salesman'),
        meta: { title: 'salesman', noCache: false }, // 业务员首页
        menu: 'salesman'
      },
      {
        path: '/purchasing',
        name: 'Purchasing',
        component: () => import('@/views/homePageNew/purchasing'),
        meta: { title: '采购员', noCache: false }, // 采购员
        hidden: true,
        menu: 'purchasing'
      },
      {
        path: '/buyerHome',
        name: 'BuyerHome',
        component: () => import('@/views/homePageNew/buyerHome'),
        meta: { title: 'buyer', noCache: false }, // 采购首页
        menu: 'buyerHome'
      },
      {
        path: '/planner',
        name: 'Planner',
        component: () => import('@/views/homePageNew/planner'),
        meta: { title: 'planner', noCache: false }, // 计划首页
        hidden: true,
        menu: 'planner'
      },
      {
        path: '/planUnit',
        name: 'PlanUnit',
        component: () => import('@/views/homePageNew/planUnit'),
        meta: { title: 'planUnit' }, // 计划员
        hidden: true,
        menu: 'planUnit'
      },
      {
        path: '/warehouse',
        name: 'Warehouse',
        component: () => import('@/views/homePageNew/warehouse'),
        meta: { title: 'warehouse', noCache: false }, // 仓库首页
        hidden: true,
        menu: 'warehouse'
      },
      {
        path: '/financing',
        name: 'Financing',
        component: () => import('@/views/homePageNew/financing'),
        meta: { title: 'financing', noCache: false }, // 财务首页
        hidden: true,
        menu: 'financing'
      },
      {
        path: '/research',
        name: 'Research',
        component: () => import('@/views/homePageNew/research'),
        meta: { title: 'research', noCache: false }, // 研发首页
        hidden: true,
        menu: 'research'
      },
      {
        path: '/president',
        name: 'President',
        component: () => import('@/views/homePageNew/president'),
        meta: { title: 'president', noCache: false }, // 总裁首页
        hidden: true,
        menu: 'president'
      }
    ]
  },
  {
    path: '/reportCen',
    name: 'ReportCen',
    component: Layout,
    meta: { title: 'reportCen', icon: 'baobiao' }, // 报表中心
    children: [
      {
        path: '/saleReport',
        name: 'SaleReport',
        component: () => import('@/views/market/saleReport'),
        meta: { title: 'saleReport' }, // 销售报表
        menu: 'saleReport'
      },
      {
        path: '/proStatement',
        name: 'ProStatement',
        component: () => import('@/views/production/proStatement'),
        meta: { title: 'proStatement' }, // 生产报表
        menu: 'proStatement'
      },
      {
        path: '/purchasingReport',
        name: 'PurchasingReport',
        component: () =>
          import('@/views/purchasing/purchase/purchasingReport'),
        meta: { title: 'purchasingReport' }, // 采购报表
        menu: 'purchasingReport'
      },
      {
        path: '/inventory',
        name: 'Inventory',
        component: () => import('@/views/repertory/inventory'),
        meta: { title: 'inventory' }, // 库存报表
        menu: 'inventory'
      },
      {
        path: '/statements',
        name: 'Statements',
        component: () => import('@/views/financial/statements'),
        meta: { title: 'statements' }, // 财务报表
        menu: 'statements'
      },
      {
        path: '/costReport',
        name: 'CostReport',
        component: () => import('@/views/financial/costReport'),
        meta: { title: 'costReport' }, // 成本报表
        menu: 'costReport'
      },
      {
        path: '/projectReport',
        name: 'ProjectReport',
        component: () => import('@/views/production/projectReport'),
        meta: { title: 'planReport' }, // 计划报表
        menu: 'projectReport'
      }
    ]
  },
  {
    path: '/basic',
    component: Layout,
    name: 'Basic',
    meta: { // 基础管理
      title: 'basics',
      icon: 'basics'
    },
    children: [
      {
        path: '/material',
        name: 'Material',
        component: () => import('@/views/basic/material'),
        meta: { title: 'material' }, // 物料管理
        children: [
          {
            path: '/createMateriel2',
            name: 'CreateMateriel2',
            component: () => import('@/views/basic/createMateriel2'),
            meta: { title: 'createMateriel', noCache: false }, // 新增物料
            menu: 'createMateriel2'
          },
          {
            path: '/detailMateriel/:id',
            name: 'DetailMateriel',
            component: () => import('@/views/basic/material/detailMateriel'),
            meta: { title: 'detailMateriel' }, // 物料详情
            hidden: true,
            menu: 'detailMateriel'
          },
          {
            path: '/materielList',
            name: 'MaterielList',
            component: () => import('@/views/basic/material/materielList'),
            meta: { title: 'materielList', noCache: false }, // 物料列表
            menu: 'materielList'
          },
          {
            path: '/codeComparative',
            name: 'CodeComparative',
            component: () => import('@/views/encodingRules/codeComparative'),
            meta: { title: 'codeComparative' }, // 编码图形表
            menu: 'codeComparative'
          },
          {
            path: '/codeNewly',
            name: 'CodeNewly',
            component: () => import('@/views/encodingRules/codeNewly'),
            meta: { title: 'codeNewly' }, // 编码配置表
            menu: 'codeNewly'
          },
          {
            path: '/properties',
            name: 'Properties',
            component: () => import('@/views/encodingRules/properties'),
            meta: { title: 'properties' }, // 物料属性配置
            menu: 'properties'
          }
        ]
      },
      {
        path: '/customerBom',
        name: 'CustomerBom',
        component: () => import('@/views/basic/customerBom'),
        meta: { title: 'customerBom' }, // 物料对应表
        children: [
          {
            path: '/createCustomerBom',
            name: 'CreateCustomerBom',
            component: () => import('@/views/basic/customerBom/createCustomerBom'),
            meta: { title: 'createCustomerBom', noCache: false }, // 新增客户物料对应表
            menu: 'createCustomerBom'
          },
          {
            path: '/customerBomList',
            name: 'CustomerBomList',
            component: () => import('@/views/basic/customerBom/customerBomList'),
            meta: { title: 'customerBomList', noCache: false }, // 客户物料对应列表
            menu: 'customerBomList'
          },
          {
            path: '/editCustomerBom/:id',
            name: 'EditCustomerBom',
            component: () => import('@/views/basic/customerBom/editCustomerBom'),
            meta: { title: 'editCustomerBom', noCache: false }, // 客户物料对应表详情
            hidden: true,
            menu: 'editCustomerBom'
          }
        ]
      }, {
        path: '/conversion',
        name: 'Conversion',
        component: () => import('@/views/basic/conversion'),
        meta: { title: 'conversion' }, // 物料换算
        children: [
          {
            path: '/createConversion',
            name: 'CreateConversion',
            component: () => import('@/views/basic/conversion/createConversion'),
            meta: { title: 'createConversion', noCache: false }, // 新增物料换算
            menu: 'createConversion'
          },
          {
            path: '/conversionList',
            name: 'ConversionList',
            component: () => import('@/views/basic/conversion/conversionList'),
            meta: { title: 'conversionList', noCache: false }, // 物料换算列表
            menu: 'conversionList'
          },
          {
            path: '/editConversion/:id',
            name: 'EditConversion',
            component: () => import('@/views/basic/conversion/editConversion'),
            meta: { title: 'editConversion', noCache: false }, // 物料换算详情
            hidden: true,
            menu: 'editConversion'
          }
        ]
      }, {
        path: '/measuringUnit',
        name: 'MeasuringUnit',
        component: () => import('@/views/basic/measuringUnit'),
        meta: { title: 'measuringUnit' }, // 单位管理
        children: [
          {
            path: '/createMeasuring',
            name: 'CreateConversion',
            component: () => import('@/views/basic/measuringUnit/createMeasuring'),
            meta: { title: 'createMeasuring', noCache: false }, // 新增计量单位
            menu: 'createMeasuring'
          },
          {
            path: '/measurList',
            name: 'MeasurList',
            component: () => import('@/views/basic/measuringUnit/measurList'),
            meta: { title: 'measurList', noCache: false }, // 计量单位列表
            menu: 'measurList'
          },
          {
            path: '/editMeasuring/:id',
            name: 'EditMeasuring',
            component: () => import('@/views/basic/measuringUnit/editMeasuring'),
            meta: { title: 'editMeasuring', noCache: false }, // 计量单位详情
            hidden: true,
            menu: 'editMeasuring'
          }
        ]
      },
      {
        path: '/users',
        component: () => import('@/views/basic/users/index'),
        name: 'Users',
        meta: { // 用户管理
          title: 'users'
        },
        children: [
          {
            path: '/userslist',
            name: 'Userslist',
            component: () => import('@/views/basic/users/userslist'),
            meta: { title: 'userslist', noCache: false }, // 用户列表
            menu: 'userslist'
          },
          {
            path: '/newlyUser',
            name: 'NewlyUser',
            component: () => import('@/views/basic/users/newlyUser'),
            meta: { title: 'newlyUser', noCache: false }, // 新增用户
            hidden: true,
            menu: 'newlyUser'
          },
          {
            path: '/editUser/:id',
            name: 'EditUser',
            component: () => import('@/views/basic/users/editUser'),
            meta: { title: 'editUser', noCache: false }, // 修改用户
            hidden: true,
            menu: 'editUser'
          },
          {
            path: '/rulelist',
            name: 'Rulelist',
            component: () => import('@/views/basic/users/rulelist'),
            meta: { title: 'rulelist', noCache: false }, // 角色列表
            menu: 'rulelist'
          },
          {
            path: '/userGroup',
            name: 'UserGroup',
            component: () => import('@/views/basic/users/userGroup'),
            meta: { title: 'userGroup', noCache: false }, // 用户组列表
            menu: 'userGroup'
          },
          {
            path: '/menuList',
            name: 'MenuList',
            component: () => import('@/views/basic/users/menuList'),
            meta: { title: 'menuList' }, // 菜单管理
            menu: 'menuList'
          },
          {
            path: '/staffType',
            name: 'staffType',
            component: () => import('@/views/basic/users/staffType'),
            meta: { title: 'staffType' }, // 员工类型
            menu: 'staffType'
          },
          {
            path: '/orderReview',
            name: 'OrderReview',
            component: () => import('@/views/basic/users/orderReview'),
            meta: { title: 'orderReview' }, // 单据审核
            menu: 'orderReview'
          },
          {
            path: '/settingCorrect',
            name: 'SettingCorrect',
            component: () => import('@/views/basic/users/settingCorrect'),
            meta: { title: 'settingCorrect' }, // 单据审核
            menu: 'settingCorrect'
          },
          {
            path: '/condition',
            name: 'Condition',
            component: () => import('@/views/basic/users/condition'),
            meta: { title: 'condition' }, // 查询条件列表
            menu: 'condition'
          },
          {
            path: '/subscription',
            name: 'Subscription',
            component: () => import('@/views/basic/users/subscription'),
            meta: { title: 'subscription' }, // 消息订阅列表
            menu: 'subscription'
          },
          {
            path: '/messageCenter',
            name: 'MessageCenter',
            component: () => import('@/views/mallHomepage/messageCenter'),
            meta: { title: 'messageCenter' }, // 消息中心
            menu: 'messageCenter'
          },
          {
            path: '/dictionary',
            name: 'Dictionary',
            component: () => import('@/views/basic/dictionary'),
            meta: { title: 'dictionary' }, // 数据字典
            menu: 'dictionary'
          },
          {
            path: '/company',
            name: 'Company',
            component: () =>
              import('@/views/financial/company'),
            meta: { title: 'company' }, // 公司配置
            menu: 'company'
          },
          {
            path: '/splicingConfig',
            name: 'SplicingConfig',
            component: () =>
              import('@/views/basic/users/splicingConfig'),
            meta: { title: 'splicingConfig' }, // 拼接配置
            menu: 'splicingConfig'
          },
          {
            path: '/splicFigDetail/:id',
            name: 'splicFigDetail',
            component: () =>
              import('@/views/basic/users/splicFigDetail'),
            meta: { title: 'splicFigDetail' }, // 拼接配置详情
            hidden: true,
            menu: 'splicFigDetail'
          }
        ]
      },
      {
        path: '/currencyRates',
        component: () => import('@/views/basic/currencyRates/index'),
        name: 'CurrencyRates',
        meta: { // 币别/汇率管理
          title: 'currencyRates'
        },
        children: [
          {
            path: '/currency',
            name: 'Currency',
            component: () => import('@/views/basic/currencyRates/currency'),
            meta: { title: 'currency', noCache: false }, // 币别管理
            menu: 'currency'
          },
          {
            path: '/rates',
            name: 'Rates',
            component: () => import('@/views/basic/currencyRates/rates'),
            meta: { title: 'rates', noCache: false }, // 汇率管理
            menu: 'rates'
          }
        ]
      },
      {
        path: '/cashFlow',
        component: () => import('@/views/basic/cashFlow/index'),
        name: 'CashFlow',
        meta: { // 现金流量
          title: 'cashFlow'
        },
        children: [
          {
            path: '/cashFlowAdd',
            name: 'CashFlowAdd',
            component: () => import('@/views/basic/cashFlow/cashFlowAdd'),
            meta: { title: 'cashFlowAdd', noCache: false }, // 现金流量新增
            menu: 'cashFlowAdd'
          },
          {
            path: '/cashFlowList',
            name: 'CashFlowList',
            component: () => import('@/views/basic/cashFlow/cashFlowList'),
            meta: { title: 'cashFlowList', noCache: false }, // 现金流量列表
            menu: 'cashFlowList'
          },
          {
            path: '/cashFlowDetail/:id',
            name: 'CashFlowDetail',
            component: () => import('@/views/basic/cashFlow/cashFlowDetail'),
            meta: { title: 'cashFlowDetail', noCache: false }, // 现金流量详情
            hidden: true,
            menu: 'cashFlowDetail'
          }
        ]
      },
      {
        path: '/customer',
        component: () => import('@/views/market/customer'),
        name: 'Customer',
        meta: { // 客户管理
          title: 'customer'
        },
        children: [
          {
            path: '/createCustomer',
            name: 'CreateCustomer',
            component: () => import('@/views/market/customer/createCustomer'),
            meta: { title: 'createCustomer' }, // 新增客户
            menu: 'createCustomer'
          },
          {
            path: '/editCustomer/:id',
            name: 'EditCustomer',
            component: () => import('@/views/market/customer/editCustomer'),
            meta: { title: 'editCustomer' }, // 修改客户
            hidden: true,
            menu: 'editCustomer'
          },
          {
            path: '/customerList',
            name: 'CustomerList',
            component: () => import('@/views/market/customer/customerList'),
            meta: { title: 'customerList' }, // 客户列表
            menu: 'customerList'
          }
        ]
      },
      {
        path: '/supplier',
        name: 'Supplier',
        component: () => import('@/views/purchasing/supplier'),
        meta: { // 供应商管理
          title: 'supplier'
        },
        children: [
          {
            path: '/createSupplier',
            name: 'CreateSupplier',
            component: () =>
              import('@/views/purchasing/supplier/createSupplier'),
            meta: { title: 'createSupplier' }, // 新增供应商
            menu: 'createSupplier'
          },
          {
            path: '/editSupplier/:id',
            name: 'EditSupplier',
            component: () => import('@/views/purchasing/supplier/editSupplier'),
            meta: { title: 'editSupplier' }, // 修改供应商
            hidden: true,
            menu: 'editSupplier'
          },
          {
            path: '/supplierList',
            name: 'SupplierList',
            component: () => import('@/views/purchasing/supplier/supplierList'),
            meta: { title: 'supplierList' }, // 供应商列表
            menu: 'supplierList'
          }
        ]
      }
    ]
  },
  {
    path: '/engineering',
    component: Layout,
    name: 'Engineering',
    meta: { // BOM管理
      title: 'engineering',
      icon: 'bom'
    },
    children: [
      {
        path: '/reportForm/:id',
        name: 'ReportForm',
        component: () => import('@/views/engineering/reportForm'),
        meta: { title: 'reportForm', noCache: false }, // 查询报表
        hidden: true,
        menu: 'reportForm'
      },
      {
        path: '/listBom',
        name: 'ListBom',
        component: () => import('@/views/engineering/listBom'),
        meta: { title: 'listBom', noCache: false }, // BOM清单
        menu: 'listBom'
      },
      // {
      //   path: '/treeBom/:FNUMBER',
      //   name: 'TreeBom',
      //   component: () => import('@/views/engineering/treeBom2'),
      //   meta: { title: 'treeBom', noCache: false }, // 树形BOM维护
      //   menu: 'treeBom'
      // },
      {
        path: '/treeBom/:id',
        name: 'TreeBom',
        component: () => import('@/views/engineering/detailTree'),
        meta: { title: 'treeBom', noCache: false }, // 树形BOM维护(原详情BOM组合)
        // hidden: true,
        menu: 'treeBom'
      },
      {
        path: '/fixedFactor',
        name: 'FixedFactor',
        component: () => import('@/views/engineering/fixedFactor'),
        meta: { title: 'fixedFactor', noCache: false }, // 计划人工列表
        menu: 'fixedFactor'
      },
      {
        path: '/planTime',
        name: 'PlanTime',
        component: () => import('@/views/engineering/planTime'),
        meta: { title: 'planTime', noCache: false }, // 计划工时列表
        menu: 'planTime'
      },
      {
        path: '/combination',
        name: 'Combination',
        component: () => import('@/views/engineering/combination'),
        meta: { title: 'combination', noCache: false }, // 部件组合BOM
        menu: 'combination'
      },
      {
        path: '/createBom',
        name: 'CreateBom',
        component: () => import('@/views/engineering/copyBom'),
        meta: { title: 'createBom', noCache: false }, // 新增BOM
        hidden: true,
        menu: 'createBom'
      },
      {
        path: '/bomAutomatically',
        name: 'BomAutomatically',
        component: () => import('@/views/engineering/bomAutomatically'),
        meta: { title: 'bomAutomatically', noCache: false }, // 工程BOM自动算料
        menu: 'bomAutomatically'
      },
      {
        path: '/bomAutomaticalist',
        name: 'BomAutomaticalist',
        component: () => import('@/views/engineering/bomAutomaticalist'),
        meta: { title: 'bomAutomaticalist', noCache: false }, // 工程BOM自动算料
        menu: 'bomAutomaticalist'
      },
      {
        path: '/bomAutomatDetail/:id',
        name: 'BomAutomatDetail',
        component: () => import('@/views/engineering/bomAutomatDetail'),
        meta: { title: 'bomAutomatDetail', noCache: false }, // BOM算料详情
        hidden: true,
        menu: 'bomAutomatDetail'
      }
    ]
  },
  {
    path: '/market',
    component: Layout,
    name: 'Market',
    meta: { // 销售管理
      title: 'market',
      icon: 'sale'
    },
    children: [
      {
        path: '/salesPicing',
        name: 'SalesPicing',
        component: () => import('@/views/market/salesPicing/index'),
        meta: { // 销售调价
          title: 'salesPicing'
        },
        children: [
          {
            path: '/salesPicingAdd',
            name: 'SalesPicingAdd',
            component: () =>
              import('@/views/market/salesPicing/salesPicingAdd'),
            meta: { title: 'salesPicingAdd' }, // 新增销售调价表
            menu: 'salesPicingAdd'
          },
          {
            path: '/salesPicingEdit/:id',
            name: 'SalesPicingEdit',
            component: () => import('@/views/market/salesPicing/salesPicingEdit'),
            meta: { title: 'salesPicingEdit' }, // 修改销售调价
            hidden: true,
            menu: 'salesPicingEdit'
          },
          {
            path: '/salesPicingList',
            name: 'SalesPicingList',
            component: () =>
              import('@/views/market/salesPicing/salesPicingList'),
            meta: { title: 'salesPicingList' }, // 销售调价列表
            menu: 'salesPicingList'
          }
        ]
      },
      {
        path: '/salesPrice',
        name: 'SalesPrice',
        component: () => import('@/views/market/salesPrice/index'),
        meta: { // 销售价目
          title: 'salesPrice'
        },
        children: [
          {
            path: '/createMarketPrice',
            name: 'CreateMarketPrice',
            component: () =>
              import('@/views/market/salesPrice/createMarketPrice'),
            meta: { title: 'createMarketPrice' }, // 新增销售价目表
            menu: 'createMarketPrice'
          },
          {
            path: '/markedEdit/:id',
            name: 'MarkedEdit',
            component: () => import('@/views/market/salesPrice/markedEdit'),
            meta: { title: 'markedEdit' }, // 修改价目
            hidden: true,
            menu: 'markedEdit'
          },
          {
            path: '/marketPriceList',
            name: 'MarketPriceList',
            component: () =>
              import('@/views/market/salesPrice/marketPriceList'),
            meta: { title: 'marketPriceList' }, // 销售价目表列表
            menu: 'marketPriceList'
          }
        ]
      },
      {
        path: 'forecast',
        name: 'Forecast',
        component: () => import('@/views/market/forecast/index'),
        meta: { title: 'forecast' }, // 销售预测
        hidden: true,
        children: [
          {
            path: '/createForecast',
            name: 'CreateForecast',
            component: () =>
              import('@/views/market/forecast/createForecast'),
            meta: { title: 'createForecast' }, // 新增销售预测
            menu: 'createForecast'
          },
          {
            path: '/forecastList',
            name: 'ForecastList',
            component: () =>
              import('@/views/market/forecast/forecastList'),
            meta: { title: 'forecastList' }, // 销售预测列表
            menu: 'forecastList'
          },
          {
            path: '/forecastDetail/:id',
            name: 'ForecastDetail',
            component: () =>
              import('@/views/market/forecast/forecastDetail'),
            meta: { title: 'forecastDetail' }, // 销售预测详情
            hidden: true,
            menu: 'forecastDetail'
          }
        ]
      },
      {
        path: '/marketManage',
        component: () => import('@/views/market/marketManage/index'),
        name: 'MarketManage',
        meta: { // 销售订单
          title: 'marketManage'
        },
        children: [
          {
            path: '/createMarkerOrder',
            name: 'CreateMarkerOrder',
            component: () =>
              import('@/views/market/marketManage/createMarkerOrder'),
            meta: { title: 'createMarkerOrder' }, // 新增销售订单
            menu: 'createMarkerOrder'
          },
          {
            path: '/marketRevising/:id',
            name: 'marketRevising',
            component: () =>
              import('@/views/market/marketManage/marketRevising'),
            meta: { title: 'marketRevising' }, // 修改订单
            hidden: true,
            menu: 'marketRevising'
          },
          {
            path: '/marketOrder',
            name: 'MarketOrder',
            component: () => import('@/views/market/marketManage/marketOrder'),
            meta: { title: 'marketOrder' }, // 销售订单列表
            menu: 'marketOrder'
          },
          {
            path: '/marketForm1/:id',
            name: 'MarketForm1',
            component: () => import('@/views/market/marketManage/marketForm1'),
            meta: { title: 'marketManage', noCache: false }, // 销售订单(套打)
            hidden: true,
            menu: 'marketForm1'
          },
          {
            path: '/marketXszxd/:id',
            name: 'MarketForm1',
            component: () => import('@/views/market/marketManage/marketXszxd'),
            meta: { title: 'marketManage', noCache: false }, // 销售订单(套打)
            hidden: true,
            menu: 'marketXszxd'
          },
          {
            path: '/marketSchedle',
            name: 'MarketSchedle',
            component: () => import('@/views/market/marketManage/marketSchedle'),
            meta: { title: 'marketSchedle' }, // 销售排单列表
            menu: 'marketSchedle'
          },
          {
            path: '/schedleDetail/:id',
            name: 'SchedleDetail',
            component: () => import('@/views/market/marketManage/schedleDetail'),
            meta: { title: 'schedleDetail' }, // 销售排单详情
            hidden: true,
            menu: 'schedleDetail'
          }
        ]
      },
      {
        path: 'marketApply',
        name: 'MarketApply',
        component: () => import('@/views/market/marketApply/index'),
        meta: { title: 'marketApply' }, // 销售申请
        children: [
          {
            path: '/marketApplyList',
            name: 'MarketApplyList',
            component: () =>
              import('@/views/market/marketApply/marketApplyList'),
            meta: { title: 'marketApplyList' }, // 销售申请列表
            menu: 'marketApplyList'
          },
          {
            path: '/marketApplyDetail/:id',
            name: 'MarketApplyDetail',
            component: () =>
              import('@/views/market/marketApply/marketApplyDetail'),
            meta: { title: 'marketApplyDetail' }, // 销售申请详情
            hidden: true,
            menu: 'marketApplyDetail'
          }
        ]
      },
      {
        path: '/deliveryRelease',
        redirect: '/deliveryReleaseList',
        component: () => import('@/views/market/deliveryRelease/index'),
        name: 'DeliveryRelease',
        meta: { // 发货通知单
          title: 'deliveryRelease'
        },
        children: [
          {
            path: '/deliveryReleaseList',
            name: 'DeliveryReleaseList',
            component: () =>
              import('@/views/market/deliveryRelease/deliveryReleaseList'),
            meta: { title: 'deliveryReleaseList' }, // 发货通知单列表
            menu: 'deliveryReleaseList'
          },
          {
            path: '/editDelivery/:id',
            name: 'EditDelivery',
            component: () =>
              import('@/views/market/deliveryRelease/editDelivery'),
            meta: { title: 'editDelivery' }, // 发货通知单修改
            hidden: true,
            menu: 'editDelivery'
          },
          {
            path: '/dispatchTong/:id',
            name: 'DispatchTong',
            component: () =>
              import('@/views/market/deliveryRelease/dispatchTong'),
            meta: { title: 'deliveryRelease' }, // 发货通知单
            hidden: true,
            menu: 'dispatchTong'
          },
          {
            path: '/dispatchLian/:id',
            name: 'DispatchLian',
            component: () =>
              import('@/views/market/deliveryRelease/dispatchLian'),
            meta: { title: 'deliveryRelease' }, // 发货通知单
            hidden: true,
            menu: 'dispatchLian'
          }
        ]
      },
      {
        path: '/marketOutBank',
        name: 'MarketOutBank',
        redirect: '/outBankList',
        component: () => import('@/views/market/marketOutBank/index'),
        meta: { // 销售出库单
          title: 'marketOutBank'
        },
        children: [
          {
            path: '/editOutBank/:id',
            name: 'EditOutBank',
            component: () => import('@/views/market/marketOutBank/editOutBank'),
            meta: { title: 'editOutBank' }, // 销售出库单修改
            menu: 'editOutBank',
            hidden: true
          },
          {
            path: '/outBankList',
            name: 'OutBankList',
            component: () => import('@/views/market/marketOutBank/outBankList'),
            meta: { title: 'outBankList' }, // 销售出库单列表
            menu: 'outBankList'
          },
          {
            path: '/deliveryTong1/:id',
            name: 'DeliveryTong1',
            component: () =>
              import('@/views/market/marketOutBank/deliveryTong1'),
            meta: { title: 'marketOutBank' }, // 销售出库单
            hidden: true,
            menu: 'deliveryTong1'
          },
          {
            path: '/deliveryLian1/:id',
            name: 'DeliveryTong1',
            component: () =>
              import('@/views/market/marketOutBank/deliveryLian1'),
            meta: { title: 'marketOutBank' }, // 销售出库单
            hidden: true,
            menu: 'deliveryLian1'
          }
        ]
      },
      {
        path: '/salesReturn',
        name: 'SalesReturn',
        redirect: '/saleRetuenList',
        component: () => import('@/views/market/salesReturn/index'),
        meta: { // 销售退货单
          title: 'salesReturn'
        },
        children: [
          {
            path: '/editSaleReturn/:id',
            name: 'EditSaleReturn',
            component: () => import('@/views/market/salesReturn/editSaleReturn'),
            meta: { title: 'editSaleReturn' }, // 销售退货单修改
            menu: 'editSaleReturn',
            hidden: true
          },
          {
            path: '/saleRetuenList',
            name: 'SaleRetuenList',
            component: () => import('@/views/market/salesReturn/saleRetuenList'),
            meta: { title: 'saleRetuenList' }, // 销售退货单列表
            menu: 'saleRetuenList'
          },
          {
            path: '/saleRetuenTong/:id',
            name: 'SaleRetuenTong',
            component: () =>
              import('@/views/market/salesReturn/saleRetuenTong'),
            meta: { title: 'salesReturn' }, // 销售退货单
            hidden: true,
            menu: 'saleRetuenTong'
          },
          {
            path: '/saleRetuenLian/:id',
            name: 'SaleRetuenLian',
            component: () =>
              import('@/views/market/salesReturn/saleRetuenLian/index'),
            meta: { title: 'salesReturn' }, // 销售退货单
            hidden: true,
            menu: 'saleRetuenLian'
          }
        ]
      }
    ]
  },
  {
    path: '/production',
    component: Layout,
    name: 'Production',
    meta: { // 生产管理
      title: 'production',
      icon: 'production'
    },
    children: [
      {
        path: '/productionDetails/:id',
        name: 'ProductionDetails',
        component: () => import('@/views/production/productionDetails'),
        meta: { title: 'productionDetails' }, // 生产订单汇总列表
        hidden: true,
        menu: 'productionDetails'
      },
      {
        path: '/planManagement',
        name: 'PlanManagement',
        redirect: '/planList',
        component: () => import('@/views/production/planManagement/index'),
        meta: { title: 'planManagement' }, // 计划管理
        children: [
          {
            path: '/planList',
            name: 'PlanList',
            component: () =>
              import('@/views/production/planManagement/planList'),
            meta: { title: 'planList' }, // 计划列表
            menu: 'planList'
          },
          {
            path: '/planDetails/:id',
            name: 'PlanDetails',
            component: () =>
              import('@/views/production/planManagement/planDetails'),
            meta: { title: 'planDetails' }, // 计划详情
            hidden: true,
            menu: 'planDetails'
          },
          {
            path: '/mrpView',
            name: 'MrpView',
            component: () =>
              import('@/views/production/planManagement/mrpView'),
            meta: { title: 'mrpView' }, // MRP运算
            menu: 'mrpView'
          },
          {
            path: '/planSchedu',
            name: 'PlanSchedu',
            component: () =>
              import('@/views/production/planManagement/planSchedu'),
            meta: { title: 'planSchedu' }, // 生产计划排单表
            menu: 'planSchedu'
          },
          {
            path: '/planReport',
            name: 'PlanReport',
            component: () =>
              import('@/views/production/planManagement/planReport'),
            meta: { title: 'planReport' }, // 计划报表
            children: [
              {
                path: '/packaging',
                name: 'Packaging',
                component: () =>
                  import('@/views/production/planManagement/planReport/packaging'),
                meta: { title: 'packaging' }, // 包装报表
                menu: 'packaging'
              },
              {
                path: '/rheid',
                name: 'Rheid',
                component: () =>
                  import('@/views/production/planManagement/planReport/rheid'),
                meta: { title: 'rheid' }, // 软体报表
                menu: 'rheid'
              },
              {
                path: '/metals',
                name: 'Metals',
                component: () =>
                  import('@/views/production/planManagement/planReport/metals'),
                meta: { title: 'meitals' }, // 五金报表
                menu: 'metals'
              }
            ]
          }
        ]
      },
      {
        path: '/collect ',
        component: () => import('@/views/production/collect/index'),
        name: 'Collect',
        meta: { title: 'collect' }, // 生产订单
        children: [
          {
            path: '/proOrderList',
            name: 'ProOrderList',
            component: () => import('@/views/production/collect/proOrderList'),
            meta: { title: 'proOrderList' }, // 生产订单列表
            menu: 'proOrderList'
          },
          {
            path: '/ingredientList',
            name: 'IngredientList',
            component: () =>
              import('@/views/production/collect/ingredientList'),
            meta: { title: 'ingredientList' }, // 生产用料清单列表
            menu: 'ingredientList'
          },
          {
            path: '/pickingList',
            name: 'PickingList',
            component: () => import('@/views/production/collect/pickingList'),
            meta: { title: 'pickingList' }, // 生产领料列表
            menu: 'pickingList'
          },
          {
            path: '/productionOrder/:id',
            name: 'ProductionOrder',
            component: () =>
              import('@/views/production/collect/productionOrder'),
            meta: { title: 'productionOrder' }, // 生产领料单详情
            hidden: true,
            menu: 'productionOrder'
          },
          {
            path: '/supplementaryList',
            name: 'SupplementaryList',
            component: () => import('@/views/production/collect/supplementaryList'),
            meta: { title: 'supplementaryList' }, // 生产补料列表
            menu: 'supplementaryList'
          },
          {
            path: '/supplementaryDetail/:id',
            name: 'SupplementaryDetail',
            component: () =>
              import('@/views/production/collect/supplementaryDetail'),
            meta: { title: 'supplementaryDetail' }, // 生产补料单详情
            hidden: true,
            menu: 'supplementaryDetail'
          },
          {
            path: '/proSupplement',
            name: 'ProSupplement',
            component: () => import('@/views/production/collect/proSupplement'),
            meta: { title: 'proSupplement' }, // 生产退料列表
            menu: 'proSupplement'
          },
          {
            path: '/proSuppleDetail/:id',
            name: 'ProSuppleDetail',
            component: () =>
              import('@/views/production/collect/proSuppleDetail'),
            meta: { title: 'proSuppleDetail' }, // 生产退料单详情
            hidden: true,
            menu: 'proSuppleDetail'
          },
          {
            path: '/proStirageList',
            name: 'ProStirageList',
            component: () =>
              import('@/views/production/collect/proStirageList'),
            meta: { title: 'proStirageList' }, // 生产入库列表
            menu: 'proStirageList'
          },
          {
            path: '/proStirageOrder/:id',
            name: 'ProStirageOrder',
            component: () =>
              import('@/views/production/collect/proStirageOrder'),
            meta: { title: 'proStirageOrder' }, // 生产入库单
            hidden: true,
            menu: 'proStirageOrder'
          },
          {
            path: '/proOrderDetails/:id',
            name: 'ProOrderDetails',
            component: () =>
              import('@/views/production/collect/proOrderDetails'),
            meta: { title: 'proOrderDetails' }, // 生产订单详情
            hidden: true,
            menu: 'proOrderDetails'
          },
          {
            path: '/productionEdit/:id',
            name: 'ProductionEdit',
            component: () =>
              import('@/views/production/collect/productionEdit'),
            meta: { title: 'productionEdit' }, // 生产用料订单修改
            hidden: true,
            menu: 'productionEdit'
          },
          {
            path: '/proGeneralOrd1/:id',
            name: 'ProGeneralOrd',
            component: () =>
              import('@/views/production/collect/proGeneralOrd1'),
            meta: { title: 'collect' }, // 生产订单
            hidden: true,
            menu: 'proGeneralOrd1'
          },
          {
            path: '/proSuccessionOrd1/:id',
            name: 'ProSuccessionOrd',
            component: () =>
              import('@/views/production/collect/proSuccessionOrd1'),
            meta: { title: 'collect' }, // 生产订单
            hidden: true,
            menu: 'proSuccessionOrd1'
          },
          {
            path: '/proIngredient1/:id',
            name: 'ProIngredient1',
            component: () =>
              import('@/views/production/collect/proIngredient1'),
            meta: { title: 'proIngredient' }, // 生产用料清单
            hidden: true,
            menu: 'proIngredient1'
          },
          {
            path: '/proPickLian1/:id',
            name: 'ProPickLian1',
            component: () =>
              import('@/views/production/collect/proPickLian1'),
            meta: { title: 'proPickLian' }, // 生产领料单
            hidden: true,
            menu: 'proPickLian1'
          },
          {
            path: '/proPickTong1/:id',
            name: 'ProPickTong1',
            component: () =>
              import('@/views/production/collect/proPickTong1'),
            meta: { title: 'proPickLian' }, // 生产领料单
            hidden: true,
            menu: 'proPickTong1'
          },
          {
            path: '/proStirTong1/:id',
            name: 'ProStirTong1',
            component: () =>
              import('@/views/production/collect/proStirTong1'),
            meta: { title: 'proStirageOrder' }, // 生产入库单
            hidden: true,
            menu: 'proStirTong1'
          },
          {
            path: '/proStirLian1/:id',
            name: 'ProStirLian1',
            component: () =>
              import('@/views/production/collect/proStirLian1'),
            meta: { title: 'proStirageOrder' }, // 生产入库单
            hidden: true,
            menu: 'proStirLian1'
          },
          {
            path: '/proSupplTong1/:id',
            name: 'ProSupplTong1',
            component: () =>
              import('@/views/production/collect/proSupplTong1'),
            meta: { title: 'supplementary' }, // 生产补料单
            hidden: true,
            menu: 'proSupplTong1'
          },
          {
            path: '/proSupplLian1/:id',
            name: 'ProSupplLian1',
            component: () =>
              import('@/views/production/collect/proSupplLian1'),
            meta: { title: 'supplementary' }, // 生产补料单
            hidden: true,
            menu: 'proSupplLian1'
          },
          {
            path: '/proTuiStock',
            name: 'ProTuiStock',
            component: () =>
              import('@/views/production/collect/proTuiStock'),
            meta: { title: 'proTuiStock' }, // 生产退库列表
            menu: 'proTuiStock'
          },
          {
            path: '/proTuiStockDetail/:id',
            name: 'ProTuiStockDetail',
            component: () =>
              import('@/views/production/collect/proTuiStockDetail'),
            meta: { title: 'proTuiStockDetail' }, // 生产退库单
            hidden: true,
            menu: 'proTuiStockDetail'
          },
          {
            path: '/prolaborList',
            name: 'ProlaborList',
            component: () =>
              import('@/views/production/collect/prolaborList'),
            meta: { title: 'proStirageList1' }, // 生产入库人工列表
            hidden: true,
            menu: 'prolaborList'
          },
          {
            path: '/proEmentTong/:id',
            name: 'ProEmentTong',
            component: () =>
              import('@/views/production/collect/proEmentTong'),
            meta: { title: 'proSupplTong' }, // 生产退料单
            hidden: true,
            menu: 'proEmentTong'
          },
          {
            path: '/proEmentLian/:id',
            name: 'ProEmentLian',
            component: () =>
              import('@/views/production/collect/proEmentLian'),
            meta: { title: 'proSupplTong' }, // 生产退料单
            hidden: true,
            menu: 'proEmentLian'
          },
          {
            path: '/semifinish',
            name: 'Semifinish',
            component: () =>
              import('@/views/production/collect/semifinish'),
            meta: { title: 'semifinish' }, // 半成品入库列表
            menu: 'semifinish'
          },
          {
            path: '/semifinishDetail/:id',
            name: 'SemifinishDetail',
            component: () =>
              import('@/views/production/collect/semifinishDetail'),
            meta: { title: 'semifinishDetail' }, // 半成品入库单
            hidden: true,
            menu: 'semifinishDetail'
          }
        ]
      },
      {
        path: '/productionPicking',
        name: 'ProductionPicking',
        redirect: '/outOrderList',
        component: () => import('@/views/production/productionPicking/index'),
        meta: { title: 'productionPicking' }, // 委外订单
        children: [
          {
            path: '/outOrderList',
            name: 'OutOrderList',
            component: () =>
              import('@/views/production/productionPicking/outOrderList'),
            meta: { title: 'outOrderList' }, // 委外订单列表
            menu: 'outOrderList'
          },
          {
            path: '/outsourceList',
            name: 'OutsourceList',
            component: () =>
              import('@/views/production/productionPicking/outsourceList'),
            meta: { title: 'outsourceList' }, // 委外用料清单列表
            menu: 'outsourceList'
          },
          {
            path: '/productionOutEdit/:id',
            name: 'ProductionOutEdit',
            component: () =>
              import('@/views/production/productionPicking/productionOutEdit'),
            meta: { title: 'productionOutEdit' }, // 委外用料订单修改
            hidden: true,
            menu: 'productionOutEdit'
          },
          {
            path: '/outsource',
            name: 'Outsource',
            component: () =>
              import('@/views/production/productionPicking/outsource'),
            meta: { title: 'outsource' }, // 委外领料列表
            menu: 'outsource'
          },
          {
            path: '/outSupplementaryList',
            name: 'OutSupplementaryList',
            component: () =>
              import('@/views/production/productionPicking/outSupplementaryList'),
            meta: { title: 'outSupplementaryList' }, // 委外补料列表
            menu: 'outSupplementaryList'
          },
          {
            path: '/outSupplementaryEdit/:id',
            name: 'OutSupplementaryEdit',
            component: () =>
              import('@/views/production/productionPicking/outSupplementaryEdit'),
            meta: { title: 'outSupplementaryEdit' }, // 委外补料订单修改
            hidden: true,
            menu: 'outSupplementaryEdit'
          },
          {
            path: '/outSupplement',
            name: 'OutSupplement',
            component: () =>
              import('@/views/production/productionPicking/outSupplement'),
            meta: { title: 'outSupplement' }, // 委外退料列表
            menu: 'outSupplement'
          },
          {
            path: '/outSuppleDetail/:id',
            name: 'OutSuppleDetail',
            component: () =>
              import('@/views/production/productionPicking/outSuppleDetail'),
            meta: { title: 'outSuppleDetail' }, // 委外退料单详情
            hidden: true,
            menu: 'outSuppleDetail'
          },
          {
            path: '/outOrder/:id',
            name: 'OutOrder',
            component: () =>
              import('@/views/production/productionPicking/outOrder'),
            meta: { title: 'outOrder' }, // 委外领料单
            hidden: true,
            menu: 'outOrder'
          },
          {
            path: '/outOrderDetails/:id',
            name: 'OutOrderDetails',
            component: () =>
              import('@/views/production/productionPicking/outOrderDetails'),
            meta: { title: 'outOrderDetails' }, // 委外订单详情
            hidden: true,
            menu: 'outOrderDetails'
          },
          {
            path: '/outsouTong1/:id',
            name: 'OutsouTong1',
            component: () =>
              import('@/views/production/productionPicking/outsouTong1'),
            meta: { title: 'outOrder' }, // 委外领料单-通用套打
            hidden: true,
            menu: 'outsouTong1'
          },
          {
            path: '/outsouLian1/:id',
            name: 'OutsouLian1',
            component: () =>
              import('@/views/production/productionPicking/outsouLian1'),
            meta: { title: 'outOrder' },
            hidden: true,
            menu: 'outsouLian1'
          },
          {
            path: '/outSuppLian/:id',
            name: 'OutSuppLian',
            component: () =>
              import('@/views/production/productionPicking/outSuppLian'),
            meta: { title: 'outSuppLian' }, // 委外退料单
            hidden: true,
            menu: 'outSuppLian'
          },
          {
            path: '/outSuppTong/:id',
            name: 'OutSuppTong',
            component: () =>
              import('@/views/production/productionPicking/outSuppTong'),
            meta: { title: 'outSuppLian' },
            hidden: true,
            menu: 'outSuppTong'
          },
          {
            path: '/outTuiStock',
            name: 'OutTuiStock',
            component: () =>
              import('@/views/production/productionPicking/outTuiStock'),
            meta: { title: 'outTuiStock' }, // 委外退库列表
            hidden: true,
            menu: 'outTuiStock'
          },
          {
            path: '/outTuiStockDetail/:id',
            name: 'OutTuiStockDetail',
            component: () =>
              import('@/views/production/productionPicking/outTuiStockDetail'),
            meta: { title: 'outTuiStockDetail' }, // 委外退库单
            hidden: true,
            menu: 'outTuiStockDetail'
          }
        ]
      },
      {
        path: '/process ',
        name: 'Process',
        redirect: '/workFlow',
        component: () => import('@/views/production/process/index'),
        meta: { title: 'process' }, // 工艺工序
        children: [
          {
            path: '/workFlow',
            name: 'WorkFlow',
            component: () => import('@/views/production/process/workFlow'),
            meta: { title: 'workFlow' }, // 生产流程单列表
            menu: 'workFlow'
          },
          {
            path: '/workFlowDetail/:id',
            name: 'WorKFlowDetail',
            component: () => import('@/views/production/process/workFlowDetail'),
            meta: { title: 'workFlowDetail' }, // 生产流程单详情
            hidden: true,
            menu: 'workFlowDetail'
          },
          {
            path: '/workOrder',
            name: 'WorkOrder',
            component: () =>
              import('@/views/production/process/workOrder'),
            meta: { title: 'workOrder' }, // 报工单列表
            menu: 'workOrder'
          },
          {
            path: '/workOrderDetail/:id',
            name: 'WorkOrderDetail',
            component: () =>
              import('@/views/production/process/workOrderDetail'),
            meta: { title: 'workOrderDetail' }, // 报工单详情
            hidden: true,
            menu: 'workOrderDetail'
          },
          {
            path: '/outProcess',
            name: 'OutProcess',
            component: () =>
              import('@/views/production/process/outProcess'),
            meta: { title: 'outProcess' }, // 外包工序单列表
            menu: 'outProcess'
          },
          {
            path: '/outProcessDetail/:id',
            name: 'OutProcessDetail',
            component: () =>
              import('@/views/production/process/outProcessDetail'),
            meta: { title: 'outProcessDetail' }, // 外包单详情
            hidden: true,
            menu: 'outProcessDetail'
          },
          {
            path: '/outStorage',
            name: 'OutStorage',
            component: () =>
              import('@/views/production/process/outSource'),
            meta: { title: 'outStorage' }, // 外包入库单列表
            menu: 'outStorage'
          },
          {
            path: '/outStorageDetail/:id',
            name: 'OutStorageDetail',
            component: () =>
              import('@/views/production/process/outSourceDetail'),
            meta: { title: 'outStorageDetail' }, // 外包入库单详情
            hidden: true,
            menu: 'outStorageDetail'
          }
        ]
      },
      {
        path: '/treeProduction',
        name: 'TreeProduction',
        component: () => import('@/views/production/treeProduction'),
        meta: { title: 'treeProduction' }, // 树形生产管理
        menu: 'treeProduction'
      },
      {
        path: '/metals1',
        name: 'Metals',
        component: () =>
          import('@/views/production/treeProduction/printing/metals/index'),
        meta: { title: 'metals' }, // 套打
        hidden: true,
        menu: 'metals'
      },
      {
        path: '/packaging1',
        name: 'Packaging',
        component: () =>
          import('@/views/production/treeProduction/printing/packaging/index'),
        meta: { title: 'metals' }, // 套打
        hidden: true,
        menu: 'packaging'
      },
      {
        path: '/rheid1',
        name: 'Rheid',
        component: () =>
          import('@/views/production/treeProduction/printing/rheid/index'),
        meta: { title: 'metals' }, // 套打
        hidden: true,
        menu: 'rheid'
      }
    ]
  },
  {
    path: '/purchasing ',
    component: Layout,
    name: 'Purchasing ',
    meta: { // 采购管理
      title: 'purchasing',
      icon: 'purchase'
    },
    children: [
      {
        path: '/modifyPrice',
        name: 'ModifyPrice',
        redirect: '/createModifyPrice',
        component: () => import('@/views/purchasing/modifyPrice'),
        meta: { // 调价表管理
          title: 'modifyPrice'
        },
        children: [
          {
            path: '/createModifyPrice',
            name: 'CreateModifyPrice',
            component: () =>
              import('@/views/purchasing/modifyPrice/createModifyPrice'),
            meta: { title: 'createModifyPrice' }, // 新增调价
            menu: 'createModifyPrice'
          },
          {
            path: '/editModifyPrice/:id',
            name: 'EditModifyPrice',
            component: () =>
              import('@/views/purchasing/modifyPrice/editModifyPrice'),
            meta: { title: 'editModifyPrice' }, // 修改调价
            menu: 'editModifyPrice',
            hidden: true
          },
          {
            path: '/modifyPriceTao1/:id',
            name: 'ModifyPriceTao1',
            component: () =>
              import('@/views/purchasing/modifyPrice/modifyPriceTao1'),
            meta: { title: 'modifyPriceTao' }, // 调价表
            hidden: true,
            menu: 'modifyPriceTao1'
          },
          {
            path: '/modifyPriceLian1/:id',
            name: 'ModifyPriceLian1',
            component: () =>
              import('@/views/purchasing/modifyPrice/modifyPriceLian1'),
            meta: { title: 'modifyPriceTao' }, // 调价表
            hidden: true,
            menu: 'modifyPriceLian1'
          },
          {
            path: '/modifyPriceList',
            name: 'ModifyPriceList',
            component: () =>
              import('@/views/purchasing/modifyPrice/modifyPriceList'),
            meta: { title: 'modifyPriceList' }, // 调价列表
            menu: 'modifyPriceList'
          },
          {
            path: '/modifyAuditList',
            name: 'ModifyAuditList',
            component: () =>
              import('@/views/purchasing/modifyPrice/modifyAuditList'),
            meta: { title: 'modifyAuditList' }, // 调价审批列表
            menu: 'modifyAuditList'
          },
          {
            path: '/modApprove/:id',
            name: 'ModApprove',
            component: () =>
              import('@/views/purchasing/modifyPrice/modApprove'),
            meta: { title: 'purApprove' }, // 采购确认单
            hidden: true,
            menu: 'purApprove'
          }
        ]
      },
      {
        path: '/purchase',
        redirect: '/createPurchasePrice',
        component: () => import('@/views/purchasing/purchase'),
        name: 'Purchase',
        meta: { // 价目表管理
          title: 'purchase',
          noCache: false
        },
        children: [
          {
            path: '/createPurchasePrice',
            name: 'CreatePurchasePrice',
            component: () =>
              import('@/views/purchasing/purchase/createPurchasePrice'),
            meta: { title: 'createPurchasePrice' }, // 新增价目
            menu: 'createPurchasePrice'
          },
          {
            path: '/editPurchasePrice/:id',
            name: 'EditPurchasePrice',
            component: () =>
              import('@/views/purchasing/purchase/editPurchasePrice'),
            meta: { title: 'editPurchasePrice' }, // 修改价目
            hidden: true,
            menu: 'editPurchasePrice'
          },
          {
            path: '/purchasePriceList',
            name: 'PurchasePriceList',
            component: () =>
              import('@/views/purchasing/purchase/purchasePriceList'),
            meta: { title: 'purchasePriceList' }, // 价目列表
            menu: 'purchasePriceList'
          },
          {
            path: '/purchasePriceTao1/:id',
            name: 'PurchasePriceTao1',
            component: () =>
              import('@/views/purchasing/purchase/purchasePriceTao1'),
            meta: { title: 'purchasePriceTao' }, // 采购价目表
            hidden: true,
            menu: 'purchasePriceTao1'
          },
          {
            path: '/purchasePriceLian1/:id',
            name: 'PurchasePriceLian1',
            component: () =>
              import('@/views/purchasing/purchase/purchasePriceLian1'),
            meta: { title: 'purchasePriceTao' }, // 采购价目表
            hidden: true,
            menu: 'purchasePriceLian1'
          },
          {
            path: '/purApproveList',
            name: 'PurApproveList',
            component: () => import('@/views/purchasing/purchase/purApproveList'),
            meta: { title: 'purApproveList' }, // 价目审批列表
            menu: 'purApproveList'
          },
          {
            path: '/purApprove/:id',
            name: 'PurApprove',
            component: () =>
              import('@/views/purchasing/purchase/purApprove'),
            meta: { title: 'purApprove' }, // 采购确认单
            hidden: true,
            menu: 'purApprove'
          }
        ]
      },
      {
        path: '/purchaseOrder',
        name: 'PurchaseOrder',
        redirect: '/purchaseOrderList',
        component: () => import('@/views/purchasing/purchaseOrder'),
        meta: { // 采购订单管理
          title: 'purchaseOrder'
        },
        children: [
          {
            path: '/createPurchase',
            name: 'CreatePurchase',
            component: () =>
              import('@/views/purchasing/purchaseOrder/marketPushDown'),
            meta: { title: 'purOrderAsi' }, // 采购订单
            hidden: true,
            menu: 'createPurchase'
          },
          {
            path: '/editPurchase/:id',
            name: 'EditPurchase',
            component: () =>
              import('@/views/purchasing/purchaseOrder/editPurchase'),
            meta: { title: 'editPurchase' }, // 采购订单-修改
            hidden: true,
            menu: 'editPurchase'
          },
          {
            path: '/purchaseOrderList',
            name: 'PurchaseOrderList',
            component: () =>
              import('@/views/purchasing/purchaseOrder/purchaseOrderList'),
            meta: { title: 'purchaseOrderList' }, // 采购订单列表
            menu: 'purchaseOrderList'
          },
          {
            path: '/purOrderAsi1/:id',
            name: 'PurOrderAsi1',
            component: () =>
              import('@/views/purchasing/purchaseOrder/purOrderAsi1'),
            meta: { title: 'purOrderAsi', noCache: false }, // 采购订单(通用)A4
            hidden: true,
            menu: 'purOrderAsi1'
          },
          {
            path: '/purOrderLianDa1/:id',
            name: 'PurOrderLianDa1',
            component: () =>
              import('@/views/purchasing/purchaseOrder/purOrderLianDa1'),
            meta: { title: 'purOrderAsi', noCache: false }, // 采购订单(连续)A4
            hidden: true,
            menu: 'purOrderLianDa1'
          },
          {
            path: '/editStorage/:id',
            name: 'EditStorage',
            component: () =>
              import('@/views/purchasing/putStorage/editStorage'),
            meta: { title: 'editStorage' }, // 采购入库单-修改
            hidden: true,
            menu: 'editStorage'
          },
          {
            path: '/storageList',
            name: 'StorageList',
            component: () =>
              import('@/views/purchasing/putStorage/storageList'),
            meta: { title: 'storageList' }, // 采购入库单列表
            menu: 'storageList'
          },
          {
            path: '/storageTong1/:id',
            name: 'StorageTong1',
            component: () =>
              import('@/views/purchasing/putStorage/storageTong1'),
            meta: { title: 'storageTong' }, // 采购入库单(通用)
            hidden: true,
            menu: 'storageTong1'
          },
          {
            path: '/storageLian1/:id',
            name: 'StorageLian1',
            component: () =>
              import('@/views/purchasing/putStorage/storageLian1'),
            meta: { title: 'storageLian' }, // 采购入库单(连续)
            hidden: true,
            menu: 'storageLian1'
          },
          {
            path: '/editReturnMater/:id',
            name: 'EditReturnMater',
            component: () =>
              import('@/views/purchasing/returnMaterial/editReturnMater'),
            meta: { title: 'editReturnMater' }, // 采购退库单-修改
            hidden: true,
            menu: 'editReturnMater'
          },
          {
            path: '/returnMaterList',
            name: 'ReturnMaterList',
            component: () =>
              import('@/views/purchasing/returnMaterial/returnMaterList'),
            meta: { title: 'returnMaterList' }, // 采购退库单列表
            menu: 'returnMaterList'
          },
          {
            path: '/returnMaterTong/:id',
            name: 'ReturnMaterTong',
            component: () =>
              import('@/views/purchasing/returnMaterial/returnMaterTong'),
            meta: { title: 'returnMater' }, // 采购退库单(通用)
            hidden: true,
            menu: 'returnMater'
          },
          {
            path: '/returnMaterLian/:id',
            name: 'returnMaterLian',
            component: () =>
              import('@/views/purchasing/returnMaterial/returnMaterLian'),
            meta: { title: 'returnMater' }, // 采购退库单(连续)
            hidden: true,
            menu: 'returnMater'
          },
          {
            path: '/applyList',
            name: 'ApplyList',
            component: () => import('@/views/purchasing/apply/applyList'),
            meta: { title: 'applyList' }, // 采购申请单列表
            menu: 'applyList'
          },
          {
            path: '/createApply',
            name: 'CreateApply',
            component: () => import('@/views/purchasing/apply/createApply'),
            meta: { title: 'createApply' }, // 采购申请单-新增
            hidden: true,
            menu: 'createApply'
          },
          {
            path: '/editApply/:id',
            name: 'EditApply',
            component: () => import('@/views/purchasing/apply/editApply'),
            meta: { title: 'editApply' }, // 采购申请单-修改
            hidden: true,
            menu: 'editApply'
          },
          {
            path: '/applyTong1/:id',
            name: 'ApplyTong1',
            component: () => import('@/views/purchasing/apply/applyTong1'),
            meta: { title: 'apply' }, // 采购申请单
            hidden: true,
            menu: 'applyTong1'
          },
          {
            path: '/applyLian1/:id',
            name: 'ApplyLian1',
            component: () => import('@/views/purchasing/apply/applyLian1'),
            meta: { title: 'apply' }, // 采购申请单
            hidden: true,
            menu: 'applyLian1'
          },
          {
            path: '/approveList',
            name: 'ApproveList',
            component: () => import('@/views/purchasing/apply/approveList'),
            meta: { title: 'approveList' }, // 采购审批列表
            menu: 'approveList'
          }
        ]
      }
    ]
  },
  {
    path: '/repertory',
    component: Layout,
    name: 'Repertory',
    meta: { // 库存管理
      title: 'repertory',
      icon: 'stock'
    },
    children: [
      {
        path: '/stock',
        name: 'Stock',
        redirect: '/stockList',
        component: () => import('@/views/repertory/stock'),
        meta: { title: 'stock' }, // 仓库管理
        children: [
          {
            path: '/newlyStock',
            name: 'NewlyStock',
            component: () => import('@/views/repertory/stock/newlyStock'),
            meta: { title: 'newlyStock' }, // 新增仓库
            menu: 'newlyStock'
          },
          {
            path: '/stockList',
            name: 'StockList',
            component: () => import('@/views/repertory/stock/stockList'),
            meta: { title: 'stockList' }, // 仓库列表
            menu: 'stockList'
          },
          {
            path: '/editStock/:id',
            name: 'EditStock',
            component: () => import('@/views/repertory/stock/editStock'),
            meta: { title: 'editStock' }, // 修改仓库
            hidden: true,
            menu: 'editStock'
          }
        ]
      },
      {
        path: '/allot',
        name: 'Allot',
        redirect: '/allotList',
        component: () => import('@/views/repertory/allot'),
        meta: { title: 'allot' }, // 直接调拨单
        children: [
          {
            path: '/createAllot',
            name: 'CreateAllot',
            component: () => import('@/views/repertory/allot/createAllot'),
            meta: { title: 'createAllot' }, // 新增直接调拨单
            menu: 'createAllot'
          },
          {
            path: '/allotList',
            name: 'AllotList',
            component: () => import('@/views/repertory/allot/allotList'),
            meta: { title: 'allotList' }, // 直接调拨单列表
            menu: 'allotList'
          },
          {
            path: '/allotDetail/:id',
            name: 'AllotDetail',
            component: () => import('@/views/repertory/allot/allotDetail'),
            meta: { title: 'allotDetail' }, // 修改直接调拨单
            hidden: true,
            menu: 'allotDetail'
          }
        ]
      },
      {
        path: '/assembly',
        name: 'Assembly',
        redirect: '/assemblyList',
        component: () => import('@/views/repertory/assembly'),
        meta: { title: 'assembly' }, // 组装拆卸单
        children: [
          {
            path: '/createAssembly',
            name: 'CreateAssembly',
            component: () => import('@/views/repertory/assembly/createAssembly'),
            meta: { title: 'createAssembly' }, // 新增组装拆卸单
            menu: 'createAssembly'
          },
          {
            path: '/assemblyEdit/:id',
            name: 'AssemblyEdit',
            component: () => import('@/views/repertory/assembly/assemblyEdit'),
            meta: { title: 'assemblyEdit' }, // 修改组装拆卸单
            hidden: true,
            menu: 'assemblyEdit'
          },
          {
            path: '/assemblyList',
            name: 'AssemblyList',
            component: () => import('@/views/repertory/assembly/assemblyList'),
            meta: { title: 'assemblyList' }, // 组装拆卸单列表
            menu: 'assemblyList'
          },
          {
            path: '/assemblyApprove',
            name: 'AssemblyApprove',
            component: () => import('@/views/repertory/assembly/assemblyApprove'),
            meta: { title: 'assemblyApprove' }, // 组装拆卸单审批
            menu: 'assemblyApprove'
          }
        ]
      },
      {
        path: '/otherWarehousing',
        name: 'OtherWarehousing',
        redirect: 'otherWarehousingList',
        component: () => import('@/views/repertory/otherWarehousing'),
        meta: { title: 'otherWarehousing' }, // 其他入库单
        children: [
          {
            path: '/otherWarehousingAdd',
            name: 'OtherWarehousingAdd',
            component: () => import('@/views/repertory/otherWarehousing/otherWarehousingAdd'),
            meta: { title: 'otherWarehousingAdd' }, // 新增入库单
            menu: 'otherWarehousingAdd'
          },
          {
            path: '/otherWarehousingList',
            name: 'OherWarehousingList',
            component: () => import('@/views/repertory/otherWarehousing/otherWarehousingList'),
            meta: { title: 'otherWarehousingList' }, // 其它入库单列表
            menu: 'otherWarehousingList'
          },
          {
            path: '/otherWarehousingDetails/:id',
            name: 'OtherWarehousingDetails',
            component: () => import('@/views/repertory/otherWarehousing/otherWarehousingDetails'),
            meta: { title: 'otherWarehousingDetails' }, // 其它入库单详情
            hidden: true,
            menu: 'otherWarehousingDetails'
          },
          {
            path: '/otherWareApprove',
            name: 'OherWareApprove',
            component: () => import('@/views/repertory/otherWarehousing/otherWareApprove'),
            meta: { title: 'otherWareApprove' }, // 其它入库单审批
            menu: 'otherWareApprove'
          },
          {
            path: '/otherWarehousTong1/:id',
            name: 'OtherWarehousTong1',
            component: () => import('@/views/repertory/otherWarehousing/otherWarehousTong1'),
            meta: { title: 'otherWarehousing' }, // 其它入库单
            hidden: true,
            menu: 'otherWarehousTong1'
          },
          {
            path: '/otherWarehousLian1/:id',
            name: 'OtherWarehousLian1',
            component: () => import('@/views/repertory/otherWarehousing/otherWarehousLian1'),
            meta: { title: 'otherWarehousing' }, // 其它入库单
            hidden: true,
            menu: 'otherWarehousLian1'
          }
        ]
      },
      {
        path: '/otherDelivery',
        name: 'OtherDelivery',
        redirect: '/otherDeliveryList',
        component: () => import('@/views/repertory/otherDelivery'),
        meta: { title: 'otherDelivery' }, // 其他出库单
        children: [
          {
            path: '/addOtherDelivery',
            name: 'AddOtherDelivery',
            component: () => import('@/views/repertory/otherDelivery/addOtherDelivery'),
            meta: { title: 'addOtherDelivery' }, // 新增出库单
            menu: 'addOtherDelivery'
          },
          {
            path: '/otherDeliveryList',
            name: 'OtherDeliveryList',
            component: () => import('@/views/repertory/otherDelivery/otherDeliveryList'),
            meta: { title: 'otherDeliveryList' }, // 其它出库单列表
            menu: 'otherDeliveryList'
          },
          {
            path: '/otherDeliveryDetails/:id',
            name: 'OtherDeliveryDetails',
            component: () => import('@/views/repertory/otherDelivery/otherDeliveryDetails'),
            meta: { title: 'otherDeliveryDetails' }, // 其它出库单详情
            hidden: true,
            menu: 'otherDeliveryDetails'
          },
          {
            path: '/otherDeliveryTong1/:id',
            name: 'OtherDeliveryTong1',
            component: () => import('@/views/repertory/otherDelivery/otherDeliveryTong1'),
            meta: { title: 'otherDelivery' }, // 其它出库单
            hidden: true,
            menu: 'otherDeliveryTong1'
          },
          {
            path: '/otherDeliveryLian1/:id',
            name: 'OtherDeliveryLian1',
            component: () => import('@/views/repertory/otherDelivery/otherDeliveryLian1'),
            meta: { title: 'otherDelivery' }, // 其它出库单
            hidden: true,
            menu: 'otherDeliveryLian1'
          },
          {
            path: '/otherDeliApprove',
            name: 'OtherDeliApprove',
            component: () => import('@/views/repertory/otherDelivery/otherDeliApprove'),
            meta: { title: 'otherDeliApprove' }, // 其它出库单审批
            menu: 'otherDeliApprove'
          }
        ]
      },
      {
        path: '/setPoint',
        name: 'SetPoint',
        redirect: '/stockList',
        component: () => import('@/views/repertory/setPoint'),
        meta: { title: 'setPoint' }, // 盘点管理
        children: [
          {
            path: '/newlyInventory',
            name: 'NewlyInventory',
            component: () => import('@/views/repertory/setPoint/newlyInventory'),
            meta: { title: 'newlyInventory' }, // 新增盘点方案ERP
            menu: 'newlyInventory'
          },
          {
            path: '/inventoryPlanList',
            name: 'InventoryPlanList',
            component: () => import('@/views/repertory/setPoint/inventoryPlanList'),
            meta: { title: 'inventoryPlanList' }, // 盘点方案列表
            menu: 'inventoryPlanList'
          },
          {
            path: '/inventoryPlanDetail/:id',
            name: 'InventoryPlanDetail',
            component: () => import('@/views/repertory/setPoint/inventoryPlanDetail'),
            meta: { title: 'inventoryPlanDetail' }, // 盘点方案详情
            hidden: true,
            menu: 'inventoryPlanDetail'
          },
          {
            path: '/operationERP',
            name: 'OperationERP',
            component: () => import('@/views/repertory/setPoint/operation'),
            meta: { title: 'operation' }, // 盘点作业ERP
            menu: 'operationERP'
          },
          {
            path: '/operationDetailERP/:id',
            name: 'OperationDetailERP',
            component: () => import('@/views/repertory/setPoint/operationDetail'),
            meta: { title: 'operationDetail' }, // 盘点作业详情ERP
            hidden: true,
            menu: 'operationDetailERP'
          },
          {
            path: '/inventoryProfitERP',
            name: 'InventoryProfitERP',
            component: () => import('@/views/repertory/setPoint/inventoryProfitERP'),
            meta: { title: 'inventoryProfitERP' }, //  ERP盘盈列表
            menu: 'inventoryProfitERP'
          },
          {
            path: '/inventoryDetailERP/:id',
            name: 'InventoryDetailERP',
            component: () => import('@/views/repertory/setPoint/panying/inventoryDetailERP'),
            meta: { title: 'inventoryDetailERP' }, //  ERP盘盈详情
            hidden: true,
            menu: 'inventoryDetailERP'
          },
          {
            path: '/inventoryAddERP',
            name: 'InventoryAddERP',
            component: () => import('@/views/repertory/setPoint/panying/inventoryAddERP'),
            meta: { title: 'inventoryAddERP' }, //  新增ERP盘盈
            hidden: true,
            menu: 'inventoryAddERP'
          },
          {
            path: '/inventorylossesERP',
            name: 'InventorylossesERP',
            component: () => import('@/views/repertory/setPoint/inventorylossesERP'),
            meta: { title: 'inventorylossesERP' }, //  ERP盘亏列表
            menu: 'inventorylossesERP'
          },
          {
            path: '/lossesDetailERP/:id',
            name: 'LossesDetailERP',
            component: () => import('@/views/repertory/setPoint/pankui/lossesDetailERP'),
            meta: { title: 'lossesDetailERP' }, //  ERP盘亏详情
            hidden: true,
            menu: 'lossesDetailERP'
          },
          {
            path: '/lossesAddERP',
            name: 'LossesAddERP',
            component: () => import('@/views/repertory/setPoint/pankui/lossesAddERP'),
            meta: { title: 'lossesAddERP' }, //  新增ERP盘亏
            hidden: true,
            menu: 'lossesAddERP'
          }
        ]
      },
      {
        path: '/final',
        name: 'Final',
        component: () => import('@/views/financial/final'),
        meta: { title: 'final' }, // 期末处理
        children: [
          {
            path: '/closing',
            name: 'Closing',
            component: () => import('@/views/financial/final/closing'),
            meta: { title: 'closing' }, // 库存关账
            menu: 'closing'
          }
        ]
      },
      {
        path: '/forthwithRep',
        name: 'ForthwithRep',
        component: () => import('@/views/repertory/forthwithRep'),
        meta: { title: 'forthwithRep' }, // 查看即时库存
        menu: 'forthwithRep'
      },
      {
        path: '/safeStock',
        name: 'SafeStock',
        component: () => import('@/views/repertory/safeStock'),
        meta: { title: 'safeStock' }, // 安全库存
        menu: 'safeStock'
      },
      {
        path: '/calibration',
        name: 'Calibration',
        component: () => import('@/views/repertory/calibration'),
        meta: { title: 'calibration' }, // 存货与收发数据校验
        menu: 'calibration'
      }
    ]
  },
  {
    path: '/workshop',
    component: Layout,
    name: 'workshop',
    meta: { // 车间管理
      title: 'workshop',
      icon: 'workshop'
    },
    children: [
      {
        path: '/processLibrary',
        name: 'ProcessLibrary',
        redirect: '/processList',
        component: () => import('@/views/workshop/processLibrary'),
        meta: { title: 'processLibrary' }, // 工序库管理
        children: [
          {
            path: '/groupList',
            name: 'GroupList',
            component: () => import('@/views/workshop/groupList'),
            meta: { title: 'groupList' }, // 组别列表
            menu: 'groupList'
          },
          {
            path: '/processList',
            name: 'ProcessList',
            component: () =>
              import('@/views/workshop/processLibrary/processList'),
            meta: { title: 'processList' }, // 工序库列表
            menu: 'processList'
          },
          {
            path: '/processDetail',
            name: 'ProcessDetail',
            component: () =>
              import('@/views/workshop/processLibrary/processDetail'),
            meta: { title: 'processDetail' }, // 工序库详情
            hidden: true,
            menu: 'processDetail'
          },
          {
            path: '/technologyList',
            name: 'TechnologyList',
            component: () =>
              import('@/views/workshop/technology/technologyList'),
            meta: { title: 'technologyList' }, // 工艺模板列表
            menu: 'technologyList'
          },
          {
            path: '/technologyDetail/:id',
            name: 'TechnologyDetail',
            component: () =>
              import('@/views/workshop/technology/technologyDetail'),
            meta: { title: 'technologyDetail' }, // 工艺模板详情
            hidden: true,
            menu: 'technologyDetail'
          },
          {
            path: '/technologyAdd',
            name: 'TechnologyAdd',
            component: () =>
              import('@/views/workshop/technology/technologyAdd'),
            meta: { title: 'technologyAdd' }, // 新增工艺模板
            hidden: true,
            menu: 'technologyAdd'
          },
          {
            path: '/hoursRegister',
            name: 'HoursRegister',
            component: () => import('@/views/workshop/hoursRegister'),
            meta: { title: 'hoursRegister' }, // 工时登记
            menu: 'hoursRegister'
          }
        ]
      },
      {
        path: '/supplierProcess',
        name: 'SupplierProcess',
        redirect: '/processList',
        component: () => import('@/views/workshop/supplierProcess'),
        meta: { title: 'outsourcingProcess' }, // 外包工序管理
        children: [
          {
            path: '/outsourcingList',
            name: 'outsourcingList',
            component: () =>
              import('@/views/workshop/supplierProcess/outsourcingList'),
            meta: { title: 'outsourcingList' }, // 外包工序库
            menu: 'outsourcingList'
          },
          {
            path: '/supplierProcessAdd',
            name: 'SupplierProcessAdd',
            component: () =>
              import('@/views/workshop/supplierProcess/supplierProcessAdd'),
            meta: { title: 'supplierProcessAdd' }, // 供应商工序新增
            hidden: true,
            menu: 'supplierProcessAdd'
          },
          {
            path: '/supplierProcessList',
            name: 'SupplierProcessList',
            component: () =>
              import('@/views/workshop/supplierProcess/supplierProcessList'),
            meta: { title: 'supplierProcessList' }, // 供应商工序列表
            menu: 'supplierProcessList'
          },
          {
            path: '/supplierProcessDetail/:id',
            name: 'SupplierProcessDetail',
            component: () =>
              import('@/views/workshop/supplierProcess/supplierProcessDetail'),
            meta: { title: 'supplierProcessDetail' }, // 供应商工序详情
            hidden: true,
            menu: 'supplierProcessDetail'
          }
        ]
      },
      {
        path: '/spongePants',
        name: '_SpongePants',
        redirect: '/spongePantsList',
        component: () => import('@/views/workshop/spongePants'),
        hidden: true,
        meta: { title: 'spongePants' }, // 海绵库管理
        children: [
          {
            path: '/spongePants',
            name: 'SpongePants',
            component: () => import('@/views/workshop/spongePants/spongePants'),
            meta: { title: 'spongePant' }, // 海绵库
            menu: 'spongePants'
          },
          {
            path: '/spongePantsEdit',
            name: 'SpongePantsEdit',
            component: () =>
              import('@/views/workshop/spongePants/spongePantsEdit'),
            meta: { title: 'spongePantsEdit' }, // 海绵库修改
            hidden: true,
            menu: 'spongePantsEdit'
          },
          {
            path: '/spongePantsList',
            name: 'SpongePantsList',
            component: () =>
              import('@/views/workshop/spongePants/spongePantsList'),
            meta: { title: 'spongePantsList' }, // 海绵库列表
            menu: 'spongePantsList'
          }
        ]
      }
    ]
  },
  {
    path: '/financial',
    name: 'Financial',
    component: Layout,
    meta: { // 财务管理
      title: 'financial', icon: 'caiwu'
    },
    children: [
      {
        path: '/subject',
        name: 'Subject',
        component: () => import('@/views/financial/subject'),
        meta: { title: 'subject' }, // 科目管理
        children: [
          {
            path: '/course',
            name: 'Course',
            component: () => import('@/views/financial/subject/course'),
            meta: { title: 'subject' }, // 科目管理
            menu: 'course'
          },
          {
            path: '/balanceSheet',
            name: 'BalanceSheet',
            component: () => import('@/views/financial/subject/balanceSheet'),
            meta: { title: 'balanceSheet' }, // 科目余额表
            menu: 'balanceSheet'
          },
          {
            path: '/balanceSheetDetail/:id',
            name: 'BalanceSheetDetail',
            component: () => import('@/views/financial/subject/balanceSheetDetail'),
            meta: { title: 'balanceSheetDetail' }, // 科目余额表详情
            hidden: true,
            menu: 'balanceSheetDetail'
          },
          {
            path: '/generalLedger',
            name: 'GeneralLedger',
            component: () => import('@/views/financial/subject/generalLedger'),
            meta: { title: 'generalLedger' }, // 总分类账
            menu: 'generalLedger'
          },
          {
            path: '/subsidiaryLedgers/:id',
            name: 'SubsidiaryLedgers',
            component: () => import('@/views/financial/subject/subsidiaryLedgers'),
            meta: { title: 'subsidiaryLedgers' }, // 明细分类账
            hidden: true,
            menu: 'subsidiaryLedgers'
          },
          {
            path: '/assetLiability',
            name: 'AssetLiability',
            component: () => import('@/views/financial/subject/assetLiability'),
            meta: { title: 'assetLiability' }, // 资产负债表
            menu: 'assetLiability'
          },
          {
            path: '/cashFlowSheet',
            name: 'CashFlowSheet',
            component: () => import('@/views/financial/subject/cashFlowSheet'),
            meta: { title: 'cashFlowSheet' }, // 现金流量表
            hidden: true,
            menu: 'cashFlowSheet'
          },
          {
            path: '/cashFlowSheets',
            name: 'CashFlowSheets',
            component: () => import('@/views/financial/subject/cashFlowSheets'),
            meta: { title: 'cashFlowSheet' }, // 现金流量表
            menu: 'cashFlowSheets'
          },
          {
            path: '/flowSheetsDetail/:id',
            name: 'FlowSheetsDetail',
            component: () => import('@/views/financial/subject/flowSheetsDetail'),
            meta: { title: 'flowSheetsDetail' }, // 现金流量查询
            hidden: true,
            menu: 'flowSheetsDetail'
          },
          {
            path: '/profit',
            name: 'Profit',
            component: () => import('@/views/financial/subject/profit'),
            meta: { title: 'profit' }, // 利润表
            menu: 'profit'
          },
          {
            path: '/bankCash',
            name: 'BankCash',
            component: () => import('@/views/financial/subject/bankCash'),
            meta: { title: 'bankCash' }, // 银行存款日记账
            menu: 'bankCash'
          },
          {
            path: '/cashJournal',
            name: 'CashJournal',
            component: () => import('@/views/financial/subject/cashJournal'),
            meta: { title: 'cashJournal' }, // 现金日记帐查询
            menu: 'cashJournal'
          }
        ]
      },
      {
        path: '/payreceiv',
        name: 'Payreceiv',
        component: () => import('@/views/financial/payreceiv'),
        meta: { title: 'payreceiv' }, // 应收款管理
        children: [
          {
            path: '/createProceed',
            name: 'CreateProceed',
            component: () => import('@/views/financial/cashier/proceeds/createProceed'),
            meta: { title: 'createProceed' }, // 新增收款单
            menu: 'createProceed'
          },
          {
            path: '/proceedList',
            name: 'ProceedList',
            component: () => import('@/views/financial/cashier/proceeds/proceedList'),
            meta: { title: 'proceedList' }, // 收款单列表
            menu: 'proceedList'
          },
          {
            path: '/proceeDetail/:id',
            name: 'ProceeDetail',
            component: () => import('@/views/financial/cashier/proceeds/proceeDetail'),
            meta: { title: 'proceeDetail' }, // 收款单详情
            hidden: true,
            menu: 'proceeDetail'
          },
          {
            path: '/createReceivable',
            name: 'CreateReceivable',
            component: () => import('@/views/financial/cashier/receivable/createReceivable'),
            meta: { title: 'createReceivable' }, // 新增应收单
            menu: 'createReceivable'
          },
          {
            path: '/receivableDetail/:id',
            name: 'ReceivableDetail',
            component: () => import('@/views/financial/cashier/receivable/receivableDetail'),
            meta: { title: 'receivableDetail' }, // 应收单详情
            hidden: true,
            menu: 'receivableDetail'
          },
          {
            path: '/receivableList',
            name: 'ReceivableList',
            component: () => import('@/views/financial/cashier/receivable/receivableList'),
            meta: { title: 'receivableList' }, // 应收单列表
            menu: 'receivableList'
          },
          {
            path: '/payreceivClo',
            name: 'PayreceivClo',
            component: () => import('@/views/financial/cashier/receivable/payreceivClo'),
            meta: { title: 'payreceivClo' }, // 应收款关账
            menu: 'payreceivClo'
          }
        ]
      },
      {
        path: '/payProcess',
        name: 'Payreceiv',
        component: () => import('@/views/financial/payProcess'),
        meta: { title: 'payProcess' }, // 应付款管理
        children: [
          {
            path: '/createPayable',
            name: 'CreatePayable',
            component: () => import('@/views/financial/cashier/payable/createPayable'),
            meta: { title: 'createPayable' }, // 新增应付单
            menu: 'createPayable'
          },
          {
            path: '/payableDetail/:id',
            name: 'PayableDetail',
            component: () => import('@/views/financial/cashier/payable/payableDetail'),
            meta: { title: 'payableDetail' }, // 应付单详情
            hidden: true,
            menu: 'payableDetail'
          },
          {
            path: '/billsPayable',
            name: 'BillsPayable',
            component: () => import('@/views/financial/cashier/payable/billsPayable'),
            meta: { title: 'billsPayable' }, // 应付单列表
            menu: 'billsPayable'
          },
          {
            path: '/billsPayCollect',
            name: 'BillsPayCollect',
            component: () => import('@/views/financial/cashier/payable/billsPayCollect'),
            meta: { title: 'billsPayCollect' }, // 应付单汇总列表
            menu: 'billsPayCollect'
          },
          {
            path: '/createPayment',
            name: 'CreatePayment',
            component: () => import('@/views/financial/cashier/payment/createPayment'),
            meta: { title: 'createPayment' }, // 新增付款单
            menu: 'createPayment'
          },
          {
            path: '/paymentList',
            name: 'PaymentList',
            component: () => import('@/views/financial/cashier/payment/paymentList'),
            meta: { title: 'paymentList' }, // 付款单列表
            menu: 'paymentList'
          },
          {
            path: '/paymentDetail/:id',
            name: 'PaymentDetail',
            component: () => import('@/views/financial/cashier/payment/paymentDetail'),
            meta: { title: 'paymentDetail' }, // 付款单详情
            hidden: true,
            menu: 'paymentDetail'
          },
          {
            path: '/payProcessClo',
            name: 'PayProcessClo',
            component: () => import('@/views/financial/cashier/payment/payProcessClo'),
            meta: { title: 'payProcessClo' }, // 应付款关账
            menu: 'payProcessClo'
          }
        ]
      },
      {
        path: '/final',
        name: 'Final',
        component: () => import('@/views/financial/final'),
        meta: { title: 'final' }, // 期末处理
        children: [
          {
            path: '/systemPost',
            name: 'SystemPost',
            component: () => import('@/views/financial/final/systemPost'),
            meta: { title: 'systemPost' }, // 凭证过账
            menu: 'systemPost'
          },
          {
            path: '/settle',
            name: 'Settle',
            component: () => import('@/views/financial/final/settle'),
            meta: { title: 'voucherPost' }, // 凭证关账
            menu: 'settle'
          }
        ]
      },
      {
        path: '/evidenceManage',
        name: 'EvidenceManage',
        component: () => import('@/views/financial/evidenceManage'),
        meta: { title: 'evidenceManage' }, // 凭证管理
        children: [
          {
            path: '/voucher',
            name: 'Voucher',
            component: () => import('@/views/financial/voucher'),
            meta: { title: 'voucher' }, // 凭证模板配置
            children: [
              {
                path: '/createVoucher',
                name: 'CreateVoucher',
                component: () => import('@/views/financial/voucher/createVoucher'),
                meta: { title: 'createVoucher' }, // 新增配置
                menu: 'createVoucher'
              },
              {
                path: '/voucherList',
                name: 'VoucherList',
                component: () => import('@/views/financial/voucher/voucherList'),
                meta: { title: 'voucherList' }, // 配置列表
                menu: 'voucherList'
              },
              {
                path: '/voucherDetail/:id',
                name: 'VoucherDetail',
                component: () => import('@/views/financial/voucher/voucherDetail'),
                meta: { title: 'voucherDetail' }, // 配置详情
                hidden: true,
                menu: 'voucherDetail'
              }
            ]
          },
          {
            path: '/voucherTemplate',
            name: 'VoucherTemplate',
            component: () => import('@/views/financial/voucherTemplate'),
            meta: { title: 'voucherTemplate' }, // 凭证模板
            children: [
              {
                path: '/createVoucherTemp',
                name: 'CreateVoucherTemp',
                component: () => import('@/views/financial/voucherTemplate/createVoucherTemp'),
                meta: { title: 'createVoucherTemp' }, // 新增模板
                menu: 'createVoucherTemp'
              },
              {
                path: '/voucherTempList',
                name: 'VoucherTempList',
                component: () => import('@/views/financial/voucherTemplate/voucherTempList'),
                meta: { title: 'voucherTempList' }, // 模板列表
                menu: 'voucherTempList'
              },
              {
                path: '/voucherTempDetail/:id',
                name: 'VoucherTempDetail',
                component: () => import('@/views/financial/voucherTemplate/voucherTempDetail'),
                meta: { title: 'voucherTempDetail' }, // 模板详情
                hidden: true,
                menu: 'voucherTempDetail'
              },
              {
                path: '/entryType',
                name: 'EntryType',
                component: () => import('@/views/financial/voucherTemplate/entryType'),
                meta: { title: 'entryType' }, // 分录类型
                menu: 'entryType'
              }
            ]
          },
          {
            path: '/certificateAdd',
            name: 'CertificateAdd',
            component: () => import('@/views/financial/voucherTemplate/certificateAdd'),
            meta: { title: 'certificateAdd' }, // 新增凭证
            menu: 'certificateAdd'
          },
          {
            path: '/certificate',
            name: 'Certificate',
            component: () => import('@/views/financial/voucherTemplate/certificate'),
            meta: { title: 'certificate' }, // 凭证列表
            menu: 'certificate'
          },
          {
            path: '/certificateDetail/:id',
            name: 'CertificateDetail',
            component: () => import('@/views/financial/voucherTemplate/certificateDetail'),
            meta: { title: 'certificateDetail' }, // 凭证详情
            hidden: true,
            menu: 'certificateDetail'
          }
        ]
      },
      {
        path: '/teller',
        name: 'Teller',
        component: () => import('@/views/financial/teller'),
        meta: { title: 'teller' }, // 出纳管理
        children: [
          {
            path: '/bank',
            name: 'Bank',
            component: () => import('@/views/financial/teller/bank'),
            meta: { title: 'bank' }, // 银行账号
            children: [
              {
                path: '/bankAdd',
                name: 'BankAdd',
                component: () => import('@/views/financial/teller/bank/bankAdd'),
                meta: { title: 'bankAdd' }, // 新增银行账号
                menu: 'bankAdd'
              },
              {
                path: '/bankList',
                name: 'BankList',
                component: () => import('@/views/financial/teller/bank/bankList'),
                meta: { title: 'bankList' }, // 银行账号列表
                menu: 'bankList'
              },
              {
                path: '/bankDetail/:id',
                name: 'BankDetail',
                component: () => import('@/views/financial/teller/bank/bankDetail'),
                meta: { title: 'bankDetail' }, // 银行账号详情
                hidden: true,
                menu: 'bankDetail'
              }
            ]
          },
          {
            path: '/cashAccount',
            name: 'CashAccount',
            component: () => import('@/views/financial/teller/cashAccount'),
            meta: { title: 'cashAccount' }, // 现金账号
            children: [
              {
                path: '/cashAccountAdd',
                name: 'CashAccountAdd',
                component: () => import('@/views/financial/teller/cashAccount/cashAccountAdd'),
                meta: { title: 'cashAccountAdd' }, // 新增现金账号
                menu: 'cashAccountAdd'
              },
              {
                path: '/cashAccountList',
                name: 'CashAccountList',
                component: () => import('@/views/financial/teller/cashAccount/cashAccountList'),
                meta: { title: 'cashAccountList' }, // 现金账号列表
                menu: 'cashAccountList'
              },
              {
                path: '/cashAccountDetail/:id',
                name: 'CashAccountDetail',
                component: () => import('@/views/financial/teller/cashAccount/cashAccountDetail'),
                meta: { title: 'cashAccountDetail' }, // 现金账号详情
                hidden: true,
                menu: 'cashAccountDetail'
              }
            ]
          },
          {
            path: '/bankTransfer',
            name: 'BankTransfer',
            component: () => import('@/views/financial/teller/bankTransfer'),
            meta: { title: 'bankTransfer' }, // 银行转账单
            children: [
              {
                path: '/transferAdd',
                name: 'TransferAdd',
                component: () => import('@/views/financial/teller/bankTransfer/transferAdd'),
                meta: { title: 'transferAdd' }, // 新增银行转账单
                menu: 'transferAdd'
              },
              {
                path: '/transferList',
                name: 'TransferList',
                component: () => import('@/views/financial/teller/bankTransfer/transferList'),
                meta: { title: 'transferList' }, // 银行转账单列表
                menu: 'transferList'
              },
              {
                path: '/transferDetail/:id',
                name: 'TransferDetail',
                component: () => import('@/views/financial/teller/bankTransfer/transferDetail'),
                meta: { title: 'transferDetail' }, // 银行转账单详情
                hidden: true,
                menu: 'transferDetail'
              }
            ]
          },
          {
            path: '/bankStatement',
            name: 'BankStatement',
            component: () => import('@/views/financial/teller/bankStatement'),
            meta: { title: 'bankStatement' }, // 银行对账单
            children: [
              {
                path: '/statementAdd',
                name: 'StatementAdd',
                component: () => import('@/views/financial/teller/bankStatement/statementAdd'),
                meta: { title: 'statementAdd' }, // 新增银行对账单
                menu: 'statementAdd'
              },
              {
                path: '/statementList',
                name: 'StatementList',
                component: () => import('@/views/financial/teller/bankStatement/statementList'),
                meta: { title: 'statementList' }, // 银行对账单列表
                menu: 'statementList'
              },
              {
                path: '/statementDetail/:id',
                name: 'StatementDetail',
                component: () => import('@/views/financial/teller/bankStatement/statementDetail'),
                meta: { title: 'statementDetail' }, // 银行对账单详情
                hidden: true,
                menu: 'statementDetail'
              }
            ]
          },
          {
            path: '/accessCash',
            name: 'AccessCash',
            component: () => import('@/views/financial/teller/accessCash'),
            meta: { title: 'accessCash' }, // 现金存取单
            children: [
              {
                path: '/accessAdd',
                name: 'AccessAdd',
                component: () => import('@/views/financial/teller/accessCash/accessAdd'),
                meta: { title: 'accessAdd' }, // 新增现金存取单
                menu: 'accessAdd'
              },
              {
                path: '/accessList',
                name: 'AccessList',
                component: () => import('@/views/financial/teller/accessCash/accessList'),
                meta: { title: 'accessList' }, // 现金存取单列表
                menu: 'accessList'
              },
              {
                path: '/accessDetail/:id',
                name: 'AccessDetail',
                component: () => import('@/views/financial/teller/accessCash/accessDetail'),
                meta: { title: 'accessDetail' }, // 现金存取单详情
                hidden: true,
                menu: 'accessDetail'
              }
            ]
          },
          {
            path: '/transferCash',
            name: 'TransferCash',
            component: () => import('@/views/financial/teller/transferCash'),
            meta: { title: 'transferCash' }, // 现金转账单
            children: [
              {
                path: '/transferCashAdd',
                name: 'TransferCashAdd',
                component: () => import('@/views/financial/teller/transferCash/transferCashAdd'),
                meta: { title: 'transferCashAdd' }, // 新增现金转账单
                menu: 'transferCashAdd'
              },
              {
                path: '/transferCashList',
                name: 'TransferCashList',
                component: () => import('@/views/financial/teller/transferCash/transferCashList'),
                meta: { title: 'transferCashList' }, // 现金转账单列表
                menu: 'transferCashList'
              },
              {
                path: '/transferCashDetail/:id',
                name: 'TransferCashDetail',
                component: () => import('@/views/financial/teller/transferCash/transferCashDetail'),
                meta: { title: 'transferCashDetail' }, // 现金转账单详情
                hidden: true,
                menu: 'transferCashDetail'
              }
            ]
          },
          {
            path: '/receipyRefund',
            name: 'ReceipyRefund',
            component: () => import('@/views/financial/teller/receipyRefund'),
            meta: { title: 'receipyRefund' }, // 收款退款单
            children: [
              {
                path: '/receipyAdd',
                name: 'ReceipyAdd',
                component: () => import('@/views/financial/teller/receipyRefund/receipyAdd'),
                meta: { title: 'receipyAdd' }, // 新增收款退款单
                menu: 'receipyAdd'
              },
              {
                path: '/receipyList',
                name: 'ReceipyList',
                component: () => import('@/views/financial/teller/receipyRefund/receipyList'),
                meta: { title: 'receipyList' }, // 收款退款单列表
                menu: 'receipyList'
              },
              {
                path: '/receipyDetail/:id',
                name: 'ReceipyDetail',
                component: () => import('@/views/financial/teller/receipyRefund/receipyDetail'),
                meta: { title: 'receipyDetail' }, // 收款退款单详情
                hidden: true,
                menu: 'receipyDetail'
              }
            ]
          },
          {
            path: '/paymentRefund',
            name: 'PaymentRefund',
            component: () => import('@/views/financial/teller/paymentRefund'),
            meta: { title: 'paymentRefund' }, // 付款退款单
            children: [
              {
                path: '/paymentAdd',
                name: 'PaymentAdd',
                component: () => import('@/views/financial/teller/paymentRefund/paymentAdd'),
                meta: { title: 'paymentAdd' }, // 新增付款退款单
                menu: 'paymentAdd'
              },
              {
                path: '/paymentRefundList',
                name: 'PaymentRefundList',
                component: () => import('@/views/financial/teller/paymentRefund/paymentRefundList'),
                meta: { title: 'paymentRefundList' }, // 付款退款单列表
                menu: 'paymentRefundList'
              },
              {
                path: '/paymentRefundDetail/:id',
                name: 'PaymentRefundDetail',
                component: () => import('@/views/financial/teller/paymentRefund/paymentRefundDetail'),
                meta: { title: 'paymentRefundDetail' }, // 付款退款单详情
                hidden: true,
                menu: 'paymentRefundDetail'
              }
            ]
          },
          {
            path: '/paymentRefund1',
            name: 'PaymentRefund1',
            component: () => import('@/views/financial/payProcess'),
            meta: { title: 'soufukuan' }, // 收款付款单
            children: [
              {
                path: '/createProceed1',
                name: 'CreateProceed',
                component: () => import('@/views/financial/cashier/proceeds/createProceed'),
                meta: { title: 'createProceed' }, // 新增收款单
                menu: 'createProceed'
              },
              {
                path: '/proceedList1',
                name: 'ProceedList',
                component: () => import('@/views/financial/cashier/proceeds/proceedList'),
                meta: { title: 'proceedList' }, // 收款单列表
                menu: 'proceedList'
              },
              {
                path: '/proceeDetail/:id',
                name: 'ProceeDetail',
                component: () => import('@/views/financial/cashier/proceeds/proceeDetail'),
                meta: { title: 'proceeDetail' }, // 收款单详情
                hidden: true,
                menu: 'proceeDetail'
              },
              {
                path: '/createPayment1',
                name: 'CreatePayment',
                component: () => import('@/views/financial/cashier/payment/createPayment'),
                meta: { title: 'createPayment' }, // 新增付款单
                menu: 'createPayment'
              },
              {
                path: '/paymentList1',
                name: 'PaymentList',
                component: () => import('@/views/financial/cashier/payment/paymentList'),
                meta: { title: 'paymentList' }, // 付款单列表
                menu: 'paymentList'
              },
              {
                path: '/paymentDetail/:id',
                name: 'PaymentDetail',
                component: () => import('@/views/financial/cashier/payment/paymentDetail'),
                meta: { title: 'paymentDetail' }, // 付款单详情
                hidden: true,
                menu: 'paymentDetail'
              }
            ]
          },
          {
            path: '/cashierClosing',
            name: 'CashierClosing',
            component: () => import('@/views/financial/teller/cashierClosing'),
            meta: { title: 'cashierClosing' }, // 出纳关账
            menu: 'cashierClosing'
          }
        ]
      },
      {
        path: '/inventoryPosting',
        name: 'inventoryPosting',
        component: () => import('@/views/financial/inventoryPosting'),
        meta: { title: 'inventoryPosting' }, // 存货过账表
        hidden: true,
        menu: 'inventoryPosting'
      },
      {
        path: '/salesComparison',
        name: 'SalesComparison',
        component: () => import('@/views/financial/salesComparison'),
        meta: { title: 'salesComparison' }, // 销售目标达成表
        hidden: true,
        menu: 'salesComparison'
      },
      {
        path: '/reconciliation',
        name: 'Reconciliation',
        component: () => import('@/views/financial/reconciliation'),
        meta: { title: 'reconciliation' }, // 供应商对账
        hidden: true,
        menu: 'reconciliation'
      }
    ]
  },
  {
    path: '/costAccounting',
    name: 'CostAccounting',
    component: Layout,
    meta: { title: 'costAccounting', icon: 'chengben' }, // 成本管理
    children: [
      {
        path: '/warehousingCosts',
        name: 'WarehousingCosts',
        component: () => import('@/views/financial/costAccounting/warehousingCosts'),
        meta: { title: 'warehousingCosts' }, // 入库成本维护列表
        menu: 'warehousingCosts'
      },
      {
        path: '/outbound',
        name: 'Outbound',
        component: () => import('@/views/financial/costAccounting/outbound'),
        meta: { title: 'outbound' }, // 出库成本维护列表
        menu: 'outbound'
      },
      {
        path: '/outInbound',
        name: 'OutInbound',
        component: () => import('@/views/financial/costAccounting/outInbound'),
        meta: { title: 'outInbound' }, // 出入库成本维护运算
        menu: 'outInbound'
      },
      {
        path: '/inventoryAccount',
        name: 'InventoryAccount',
        component: () => import('@/views/financial/costAccounting/inventoryAccount'),
        meta: { title: 'inventoryAccount' }, // 委外入库核算
        menu: 'inventoryAccount'
      },
      {
        path: '/inventoryDetail',
        name: 'InventoryDetail',
        component: () => import('@/views/financial/costAccounting/inventoryDetail'),
        meta: { title: 'inventoryDetail' }, // 存货收发明细表
        menu: 'inventoryDetail'
      },
      {
        path: '/collectionList',
        name: 'CollectionList',
        component: () => import('@/views/financial/costAccounting/collectionList'),
        meta: { title: 'collectionList' }, // 费用归集列表
        menu: 'collectionList'
      },
      {
        path: '/allocationList',
        name: 'AllocationList',
        component: () => import('@/views/financial/costAccounting/allocationList'),
        meta: { title: 'allocationList' }, // 费用分配明细表
        menu: 'allocationList'
      },
      {
        path: '/calculationQuery',
        name: 'CalculationQuery',
        component: () => import('@/views/financial/costAccounting/calculationQuery'),
        meta: { title: 'calculationQuery' }, // 成本运算
        menu: 'calculationQuery'
      },
      {
        path: '/calculVoucher',
        name: 'CalculVoucher',
        component: () => import('@/views/financial/costAccounting/calculVoucher'),
        meta: { title: 'calculVoucher' }, // 成本凭证生成
        menu: 'calculVoucher'
      },
      {
        path: '/createAdjustment',
        name: 'CreateAdjustment',
        component: () => import('@/views/financial/costAccounting/createAdjustment'),
        meta: { title: 'createAdjustment' }, // 新增成本调整单
        hidden: true,
        menu: 'createAdjustment'
      },
      {
        path: '/adjustmentList',
        name: 'AdjustmentList',
        component: () => import('@/views/financial/costAccounting/adjustmentList'),
        meta: { title: 'adjustmentList' }, // 成本调整单列表
        menu: 'adjustmentList'
      },
      {
        path: '/adjustmentDetails/:id',
        name: 'AdjustmentDetails',
        component: () => import('@/views/financial/costAccounting/adjustmentDetails'),
        meta: { title: 'adjustmentDetails' }, // 成本调整单详情
        hidden: true,
        menu: 'adjustmentDetails'
      },
      {
        path: '/settiementList',
        name: 'SettiementList',
        component: () => import('@/views/financial/costAccounting/settiementList'),
        meta: { title: 'settiementList' }, // 完工入库列表
        menu: 'settiementList'
      },
      {
        path: '/pickTableList',
        name: 'PickTableList',
        component: () => import('@/views/financial/costAccounting/pickTableList'),
        meta: { title: 'pickTableList' }, // 领料明细表
        menu: 'pickTableList'
      },
      {
        path: '/proWarehouseMater',
        name: 'ProWarehouseMater',
        component: () => import('@/views/financial/costAccounting/proWarehouseMater'),
        meta: { title: 'proWarehouseMater' }, // 生产入库领料查询
        menu: 'proWarehouseMater'
      },
      {
        path: '/abnormalList',
        name: 'AbnormalList',
        component: () => import('@/views/financial/costAccounting/abnormalList'),
        meta: { title: 'abnormalList' }, // 异常余额汇总表
        menu: 'abnormalList'
      }
    ]
  },
  {
    path: '/assets',
    name: 'Assets',
    component: Layout,
    meta: { title: 'assets', icon: 'zichan' }, // '资产管理'
    children: [
      {
        path: '/assetsAdd',
        name: 'assetsAdd',
        component: () => import('@/views/financial/assets/assetsAdd'),
        meta: { title: 'assetsAdd' }, // 新增资产
        hidden: true,
        menu: 'assetsAdd'
      },
      {
        path: '/assetsList',
        name: 'AssetsList',
        component: () => import('@/views/financial/assets/assetsList'),
        meta: { title: 'assetsList' }, // 资产卡片
        menu: 'assetsList'
      },
      {
        path: '/assetsDetail/:id',
        name: 'AssetsDetail',
        component: () => import('@/views/financial/assets/assetsDetail'),
        meta: { title: 'assetsDetail' }, // 资产详情
        hidden: true,
        menu: 'assetsDetail'
      },
      {
        path: '/disposeAdd',
        name: 'DisposeAdd',
        component: () => import('@/views/financial/assets/dispose/disposeAdd'),
        meta: { title: 'disposeAdd' }, // 资产处置单
        hidden: true,
        menu: 'disposeAdd'
      },
      {
        path: '/disposeList',
        name: 'DisposeList',
        component: () => import('@/views/financial/assets/dispose/disposeList'),
        meta: { title: 'disposeList' }, // 资产处置
        menu: 'disposeList'
      },
      {
        path: '/disposeDetail/:id',
        name: 'DisposeDetail',
        component: () => import('@/views/financial/assets/dispose/disposeDetail'),
        meta: { title: 'disposeDetail' }, // 资产处置单详情
        hidden: true,
        menu: 'disposeDetail'
      },
      {
        path: '/changeAdd',
        name: 'ChangeAdd',
        component: () => import('@/views/financial/assets/change/changeAdd'),
        meta: { title: 'changeAdd' }, // 新增资产变更单
        hidden: true,
        menu: 'changeAdd'
      },
      {
        path: '/changeList',
        name: 'ChangeList',
        component: () => import('@/views/financial/assets/change/changeList'),
        meta: { title: 'changeList' }, // 资产变更
        menu: 'changeList'
      },
      {
        path: '/changeDetail/:id',
        name: 'ChangeDetail',
        component: () => import('@/views/financial/assets/change/changeDetail'),
        meta: { title: 'changeDetail' }, // 资产变更单详情
        hidden: true,
        menu: 'changeDetail'
      },
      {
        path: '/depAdjustmentList',
        name: 'DepAdjustmentList',
        component: () => import('@/views/financial/assets/depAdjustment/depAdjustmentList'),
        meta: { title: 'depAdjustment' }, // 折旧调整单列表
        menu: 'depAdjustment'
      },
      {
        path: '/depAdjustmentDetail/:id',
        name: 'DepAdjustmentDetail',
        component: () => import('@/views/financial/assets/depAdjustment/depAdjustmentDetail'),
        meta: { title: 'depAdjustmentDetail' }, // 折旧调整单
        hidden: true,
        menu: 'depAdjustmentDetail'
      },
      {
        path: '/fixedAssetsClosing',
        name: 'FixedAssetsClosing',
        component: () => import('@/views/financial/assets/fixedAssetsClosing'),
        meta: { title: 'fixedAssetsClosing' }, // 固定资产关账
        menu: 'fixedAssetsClosing'
      }
    ]
  },
  {
    path: '/quality',
    name: 'Quality',
    redirect: '/qualityList',
    component: Layout,
    meta: { title: 'quality', icon: 'pinzhi1' }, // 品质管理
    children: [
      {
        path: '/createQuality',
        name: 'CreateQuality',
        component: () => import('@/views/quality/createQuality'),
        meta: { title: 'createQuality' }, // 新增品质检验单
        menu: 'createQuality'
      },
      {
        path: '/qualityList',
        name: 'QualityList',
        component: () => import('@/views/quality/qualityList'),
        meta: { title: 'qualityList' }, // 品质检验列表
        menu: 'qualityList'
      },
      {
        path: '/qualityDetail/:id',
        name: 'QualityDetail',
        component: () => import('@/views/quality/qualityDetail'),
        meta: { title: 'qualityDetail' }, // 品质检验详情
        hidden: true,
        menu: 'qualityDetail'
      }
    ]
  },
  {
    path: '/wms',
    name: 'Wms',
    redirect: '/stockWms',
    component: Layout,
    meta: { title: 'wms', icon: 'wms' }, // WMS管理
    children: [
      {
        path: '/stockWms',
        name: 'StockWms',
        component: () => import('@/views/wms/stockWms'),
        meta: { title: 'stockWms' }, // 仓库管理
        menu: 'stockWms'
      },
      {
        path: '/shipSpace',
        name: 'ShipSpace',
        component: () => import('@/views/wms/shipSpace'),
        meta: { title: 'shipSpace' }, // 仓位管理
        menu: 'shipSpace'
      },
      {
        path: '/shipSpaceTong/:id',
        name: 'ShipSpaceTong',
        component: () => import('@/views/wms/shipSpace/shipSpaceTong'),
        meta: { title: 'shipSpaceLian' }, // 仓位管理
        hidden: true,
        menu: 'shipSpaceLian'
      },
      {
        path: '/shipSpaceLian/:id',
        name: 'ShipSpaceLian',
        component: () => import('@/views/wms/shipSpace/shipSpaceLian'),
        meta: { title: 'shipSpaceLian' }, // 仓位管理
        hidden: true,
        menu: 'shipSpaceLian'
      },
      {
        path: '/finished',
        name: 'Finished',
        component: () => import('@/views/finished'),
        meta: { title: 'finished' }, // 成品管理
        children: [
          {
            path: '/finishPrint',
            name: 'FinishPrint',
            component: () => import('@/views/finished/finishPrint'),
            meta: { title: 'finishPrint' }, // 成品包装条码
            menu: 'finishPrint'
          },
          {
            path: '/barcodelog',
            name: 'Barcodelog',
            component: () => import('@/views/finished/barcodelog'),
            meta: { title: 'barcodelog' }, // 包装条码明细
            menu: 'barcodelog'
          },
          {
            path: '/printLian/:id',
            name: 'PrintLian',
            component: () => import('@/views/finished/printLian'),
            meta: { title: 'finishPrint' }, // 包装条码页面
            hidden: true,
            menu: 'printLian'
          }
        ]
      },
      {
        path: '/barcode',
        name: 'Barcode',
        component: () => import('@/views/wms/barcode'),
        meta: { title: 'barcode' }, // 物料条码管理
        menu: 'barcode'
      },
      {
        path: '/barcodeTong/:id',
        name: 'BarcodeTong',
        component: () => import('@/views/wms/barcodeTong'),
        meta: { title: 'barcode' }, // 条码打印
        hidden: true,
        menu: 'barcodeTong'
      },
      {
        path: '/outboundList',
        name: 'outboundList',
        component: () => import('@/views/wms/outboundList'),
        meta: { title: 'outboundList' }, // 出库列表
        menu: 'outboundList'
      },
      {
        path: '/inventoryList',
        name: 'InventoryList',
        component: () => import('@/views/wms/inventoryList'),
        meta: { title: 'inventoryList' }, // 入库列表
        menu: 'inventoryList'
      },
      {
        path: '/otherInventoryList',
        name: 'OtherInventoryList',
        component: () => import('@/views/wms/otherInvent/otherInventoryList'),
        meta: { title: 'otherInventoryList' }, // 其他入库列表
        menu: 'otherInventoryList'
      },
      {
        path: '/otherInvertory',
        name: 'OtherInvertory',
        component: () => import('@/views/wms/otherInvent/otherInvertory'),
        meta: { title: 'otherInvertory' }, // wms新增其他入库
        hidden: true,
        menu: 'otherInvertory'
      },
      {
        path: '/otherInvertoryDetails/:id',
        name: 'OtherInvertoryDetails',
        component: () => import('@/views/wms/otherInvent/otherInvertoryDetails'),
        meta: { title: 'otherInvertoryDetails' }, // wms其他入库详情
        hidden: true,
        menu: 'otherInvertoryDetails'
      }, {
        path: '/otherOuterList',
        name: 'OtherOuterList',
        component: () => import('@/views/wms/otherOuter/otherOuterList'),
        meta: { title: 'otherOuterList' }, // 其他出库列表
        menu: 'otherOuterList'
      },
      {
        path: '/otherOuter',
        name: 'otherOuter',
        component: () => import('@/views/wms/otherOuter/otherOuter'),
        meta: { title: 'otherOuter' }, // wms新增其他出库
        hidden: true,
        menu: 'otherOuter'
      },
      {
        path: '/otherOuterDetails/:id',
        name: 'OtherOuterDetails',
        component: () => import('@/views/wms/otherOuter/otherOuterDetails'),
        meta: { title: 'otherOuterDetails' }, // wms其他出库详情
        hidden: true,
        menu: 'otherOuterDetails'
      },
      {
        path: '/shiftingList',
        name: 'ShiftingList',
        component: () => import('@/views/wms/shiftingWms/shiftingList'),
        meta: { title: 'shiftingWms' }, // WMS移库列表
        menu: 'shiftingList'
      },
      {
        path: '/shiftingAdd',
        name: 'ShiftingAdd',
        component: () => import('@/views/wms/shiftingWms/shiftingAdd'),
        meta: { title: 'shiftingAdd' }, // WMS新增移库
        hidden: true,
        menu: 'shiftingAdd'
      },
      {
        path: '/shiftingDetail/:id',
        name: 'ShiftingDetail',
        component: () => import('@/views/wms/shiftingWms/shiftingDetail'),
        meta: { title: 'shiftingDetail' }, // WMS移库详情
        hidden: true,
        menu: 'shiftingDetail'
      },
      {
        path: '/setPointWms',
        name: 'SetPointWms',
        component: () => import('@/views/wms/setPointWms'),
        meta: { title: 'setPoint' }, // 盘点管理
        children: [
          {
            path: '/newlyInventoryWms',
            name: 'NewlyInventoryWms',
            component: () => import('@/views/wms/setPointWms/newlyInventoryWms'),
            meta: { title: 'newlyInventoryWms' }, // 新增盘点方案
            menu: 'newlyInventoryWms'
          },
          {
            path: '/inventoryPlanListWms',
            name: 'InventoryPlanListWms',
            component: () => import('@/views/wms/setPointWms/inventoryPlanListWms'),
            meta: { title: 'inventoryPlanListWms' }, // 盘点方案列表
            menu: 'inventoryPlanListWms'
          },
          {
            path: '/inventoryWmsDetail/:id',
            name: 'InventoryWmsDetail',
            component: () => import('@/views/wms/setPointWms/inventoryWmsDetail'),
            meta: { title: 'InventoryWmsDetail' }, // 盘点方案详情
            hidden: true,
            menu: 'inventoryWmsDetail'
          },
          {
            path: '/operation',
            name: 'Operation',
            component: () => import('@/views/wms/setPointWms/operation'),
            meta: { title: 'operationWms' }, // 盘点作业
            menu: 'operation'
          },
          {
            path: '/operationDetail/:id',
            name: 'OperationDetail',
            component: () => import('@/views/wms/setPointWms/operationDetail'),
            meta: { title: 'operationDetailWms' }, // wms盘点作业详情
            hidden: true,
            menu: 'operationDetail'
          },
          {
            path: '/inventoryProfit',
            name: 'InventoryProfit',
            component: () => import('@/views/wms/setPointWms/inventoryProfit'),
            meta: { title: 'inventoryProfit' }, //  WMS盘盈列表
            menu: 'inventoryProfit'
          },
          {
            path: '/profitDetail/:id',
            name: 'ProfitDetail',
            component: () => import('@/views/wms/setPointWms/panying/profitDetail'),
            meta: { title: 'profitDetail' }, //  WMS盘盈详情
            hidden: true,
            menu: 'profitDetail'
          },
          {
            path: '/profitAdd',
            name: 'ProfitAdd',
            component: () => import('@/views/wms/setPointWms/panying/profitAdd'),
            meta: { title: 'profitAdd' }, //  新增WMS盘盈
            hidden: true,
            menu: 'profitAdd'
          },
          {
            path: '/inventorylosses',
            name: 'Inventorylosses',
            component: () => import('@/views/wms/setPointWms/inventorylosses'),
            meta: { title: 'inventorylosses' }, //  WMS盘亏列表
            menu: 'inventorylosses'
          },
          {
            path: '/lossesDetail/:id',
            name: 'LossesDetail',
            component: () => import('@/views/wms/setPointWms/pankui/lossesDetail'),
            meta: { title: 'lossesDetail' }, //  WMS盘亏详情
            hidden: true,
            menu: 'lossesDetail'
          },
          {
            path: '/lossesAdd',
            name: 'LossesAdd',
            component: () => import('@/views/wms/setPointWms/pankui/lossesAdd'),
            meta: { title: 'lossesAdd' }, //  新增WMS盘亏
            hidden: true,
            menu: 'lossesAdd'
          }
        ]
      },
      {
        path: '/wmsAndErpQty',
        name: 'WmsAndErpQty',
        component: () => import('@/views/wms/wmsAndErpQty'),
        meta: { title: 'wmsAndErpQty' }, // WMS数据校验
        menu: 'wmsAndErpQty'
      },
      {
        path: '/wmsMaterReceive',
        name: 'WmsMaterReceive',
        component: () => import('@/views/wms/wmsMaterReceive'),
        meta: { title: 'wmsMaterReceive' }, // WMS物料收发明细
        menu: 'wmsMaterReceive'
      }
    ]
  },
  // 404 page must be placed at the end !!!
  { path: '*', redirect: '/404', hidden: true }
]

const router = createRouter()

export function resetRouter() {
  const newRouter = createRouter()
  router.matcher = newRouter.matcher // reset router
}

export default router
